Ad-hoc profiler
commit20f807df18c3f90b515841d575b5729a18894d30
authorCatherine Gasnier <catg@fb.com>
Wed, 1 Sep 2021 14:10:16 +0000 (1 07:10 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Wed, 1 Sep 2021 14:29:19 +0000 (1 07:29 -0700)
treeb59669d5a13067b6d49742b66e3565371f94ee7e
parent776b665018864575fe675f77529151353992b273
Ad-hoc profiler

Summary:
Adhoc_profiler is a module which allows to instrument the code so as to produce profiles like
```
test1                        15.300 sec   100.00%
  step2                        13.700 sec   69.81%
    step2.2                      12.000 sec   37.74%
    step2.1                      11.000 sec   18.87%
  step1                        10.300 sec   5.66%
```
for user-defined steps. See Adhoc_profiler_test for an example usage.

Differential Revision: D30016570

fbshipit-source-id: e9c376f85047dd16b46f6e1934567608147ed102
hphp/hack/src/utils/adhoc_profiler/adhoc_profiler.ml [new file with mode: 0644]
hphp/hack/src/utils/adhoc_profiler/adhoc_profiler.mli [new file with mode: 0644]
hphp/hack/src/utils/adhoc_profiler/dune [new file with mode: 0644]
hphp/hack/test/unit/utils/adhoc_profiler/adhoc_profiler_test.ml [new file with mode: 0644]
hphp/hack/test/unit/utils/adhoc_profiler/dune [new file with mode: 0644]