Refactor profiling

Refactored core profiling codebase into two logical parts:

(a) `prof_data.c`: core internal data structure managing & dumping;
(b) `prof.c`: mutexes & outward-facing APIs.

Some internal functions had to be exposed out, but there are not
that many of them if the modularization is (hopefully) clean enough.
This commit is contained in:
Yinan Zhang
2019-07-17 15:52:50 -07:00
parent 56126d0d2d
commit 07ce2434bf
8 changed files with 1503 additions and 1452 deletions

1491
src/prof.c

File diff suppressed because it is too large Load Diff

1441
src/prof_data.c Normal file

File diff suppressed because it is too large Load Diff