mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 16:57:49 +03:00
bf292e9e5b
Summary: We want to introduce two debug commands to record perf profiles such as files read. This can later be integrated to CI so that we can have this data for troubleshooting perf issues. * `eden debug start_recording` starts recording perf metrics such as files read/written and fetch counts/latency for a given mount. * `eden debug end_recording` stops recording and dumps the recorded profile to a local file. This diff adds the boilerplate `ActivityRecorder` (borrowed heavily from `HiveLogger`'s implementation). The start command would create an instance of the recorder; the end command would destroy the recorder. The recording and dumping are handled by the implementing class. Reviewed By: genevievehelsel Differential Revision: D29506895 fbshipit-source-id: a927a363942a041d5ae54186a265576325dfeed5 |
||
---|---|---|
.. | ||
test | ||
CMakeLists.txt | ||
FakeBackingStore.cpp | ||
FakeBackingStore.h | ||
FakeClock.h | ||
FakeFuse.cpp | ||
FakeFuse.h | ||
FakeObjectStore.cpp | ||
FakeObjectStore.h | ||
FakePrivHelper.cpp | ||
FakePrivHelper.h | ||
FakeTreeBuilder.cpp | ||
FakeTreeBuilder.h | ||
HgBinary.cpp | ||
HgBinary.h | ||
HgRepo.cpp | ||
HgRepo.h | ||
InodeUnloader.h | ||
LoggingFetchContext.h | ||
StoredObject.h | ||
TempFile.cpp | ||
TempFile.h | ||
TestChecks.h | ||
TestDispatcher.cpp | ||
TestDispatcher.h | ||
TestMain.cpp | ||
TestMount.cpp | ||
TestMount.h | ||
TestServer.cpp | ||
TestServer.h | ||
TestUtil.cpp | ||
TestUtil.h |