-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Add dumpAndClearSamplingProfilerSamples function
https://bugs.webkit.org/show_bug.cgi?id=259411 rdar://112686960 Reviewed by Justin Michaud. This patch adds dumpAndClearSamplingProfilerSamples behind a flag, which dumps sampling profiler data into temp file. This allows us to automated sampling data collection for benchmarks by calling this function at the right timing. We also significantly expand the JSON data generation of SamplingProfiler to reconstruct enough information from this output. We also attach display-sampling-profiler-output script as the same to display-profiler-output. Which can feed the above JSON and dump sampling profiler output. * Source/JavaScriptCore/runtime/JSGlobalObject.cpp: (JSC::JSC_DEFINE_HOST_FUNCTION): (JSC::JSGlobalObject::init): * Source/JavaScriptCore/runtime/VM.cpp: (JSC::VM::enableSamplingProfiler): (JSC::VM::disableSamplingProfiler): (JSC::VM::takeSamplingProfilerSamplesAsJSONString): * Source/JavaScriptCore/runtime/VM.h: Canonical link: https://commits.webkit.org/266270@main
- Loading branch information
1 parent
e812d68
commit cc1dd7f
Showing
10 changed files
with
387 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.