Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TinyProfiler: output in JSON format #3904

Open
BenWibking opened this issue Apr 23, 2024 · 3 comments
Open

TinyProfiler: output in JSON format #3904

BenWibking opened this issue Apr 23, 2024 · 3 comments

Comments

@BenWibking
Copy link
Contributor

BenWibking commented Apr 23, 2024

The built-in profiler provides very useful data, but it is difficult to perform in-depth analysis with Python scripts.

It would be very useful if the profiler could also output its results in Caliper's JSON (https://software.llnl.gov/Caliper/OutputFormats.html#json-split) or JSON-split (https://software.llnl.gov/Caliper/OutputFormats.html#json-split) format.

These are formats that Hatchet (https://github.com/LLNL/hatchet) could read and turn into Pandas DataFrames.

@BenWibking
Copy link
Contributor Author

If this is a feature that would be considered merge-able, I could prototype this given a few pointers on where to start in the profiler code.

@WeiqunZhang
Copy link
Member

Yes, that would be great. For TinyProfiler, the output is done in TinyProfiler::PrintStats. You can modify it to additionally output the results in a separate file.

@BenWibking BenWibking changed the title Profiler: output in JSON format? TinyProfiler: output in JSON format? May 1, 2024
@BenWibking BenWibking changed the title TinyProfiler: output in JSON format? TinyProfiler: output in JSON format May 1, 2024
@BenWibking
Copy link
Contributor Author

I've moved the BLProfiler trace output to a separate issue: #3916.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants