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

Visualize .orbit output data in case of CLI version #4817

Open
alexkalmuk opened this issue Mar 9, 2023 · 6 comments
Open

Visualize .orbit output data in case of CLI version #4817

alexkalmuk opened this issue Mar 9, 2023 · 6 comments

Comments

@alexkalmuk
Copy link
Contributor

I'd like to know if there is a way to somehow get human readable data from .orbit (in my case it's hello_2023_03_09_14_00_13.orbit) output file. I'm using WITH_GUI=OFF version.

@florian-kuebler
Copy link
Collaborator

That should be pretty straightforward to archive. I do see two possible ways:

  1. While the capture file has some custom structure (see FORMAT.md), the interesting content is the capture section, which contains protobufs. So they can be read and converted to a textproto.
  2. We should have the capability to read orbit captures in python/jupyter notebooks. See https://github.com/google/orbit/tree/main/contrib/jupyter.

@alexkalmuk
Copy link
Contributor Author

alexkalmuk commented Mar 10, 2023

Thanks, I'll give a try to point 2 (python) first.

@alexkalmuk
Copy link
Contributor Author

alexkalmuk commented Mar 17, 2023

This python stuff works, and it's possible to print out all the captured events. But now it seems that OrbitClientGgp doesn't work properly or I'm doing something wrongly. I have a very simple program with 3 functions inside, which I'm profiling for 10 sec with GUI version (./bin/Orbit) and it shows me my 3 functions in the output with almost perfect estimation of time consumed per function. If I try CLI version:

./bin/OrbitClientGgp --file_directory hello_out --pid 80020

It finds debug info successfully, profiles for 10 seconds, saves the trace and exits. When I'm loading this trace into Orbit GUI - it's shows nothing. When I'm analizing it with python scripts - no events mentioning any functions.

I plan to debug it somehow and would appreciate any ideas about what could be the reason.

@alexkalmuk
Copy link
Contributor Author

I plan to debug it somehow and would appreciate any ideas about what could be the reason.

Fixed by #4818

@florian-kuebler
Copy link
Collaborator

Thanks for the fix. Hope that it works now on your side!

@alexkalmuk
Copy link
Contributor Author

Yes, it seems to be working. At least now I'm able to "Load capture" with a .orbit file generated by OrbitClientGgp, and it looks exactly like the capture produced by the gui version.

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