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

pid/tid string format support #470

Open
IntelligenceGeneral opened this issue Mar 11, 2024 · 4 comments
Open

pid/tid string format support #470

IntelligenceGeneral opened this issue Mar 11, 2024 · 4 comments

Comments

@IntelligenceGeneral
Copy link

hi author,

I'm looking for a tool to replace chrome://tracing, and GPT tell me speedscope is a good interactive. i have tried to use speedscope to open a chrome://tracing file but failed to show the timeline, and I found the reason is :
my json file uses string as "pid" and "tid" field. (chrome://tracing works) I tried to hack your code local but failed (I'm a EE guy) don't know any knowledge about Js? or the chrome.ts file, so open this question to ask for offical support for "string" pid and tid, could get your response, thanks!

one more thing, the reason I'm looking for a chrome://tracing alternatives is chrome only supports "pid" and "tid" my fundamental requirement is want to have more ID hierarchies: like Pid->Tid-> Aid-> Bid .... which could be customized any ideas are welcome.

@jlfwong
Copy link
Owner

jlfwong commented Mar 11, 2024

Hey @ComputeGeneral! Where does the chrome://tracing file you're generating come from? I haven't seen this particular issue before. If you can provide a test file that imports successfully into chrome tracing but fails to import into speedscope that would be helpful.

Regarding the pid/tid/aid/bid, how would you expect to be able to navigate those hierarchies?

I don't intend to have speedscope support hierarchies in chrome tracing file format which neither the standard nor the chrome tracing format itself supports, though there may be some way of accomplishing your goals using speedscope which doesn't require that.

@IntelligenceGeneral
Copy link
Author

Hi jif

the chrome://tracing file i used is generated by my own python script to handle my hardware model's output for perf analysis
the example file is attached.

trace.json

"Regarding the pid/tid/aid/bid, how would you expect to be able to navigate those hierarchies?"

for the chrome://tracing there is a pid/tid bar(navigate bar?) on the left side of window, and can be folded, so I can manage my data easily. the pain to use chrome://tracing for me is when two event has overlap on timeline(event A's end time is later than event B's start time), chrome://tracing some times can't split them in multiple rows. but in some case it could split overlap events in different row. (do you know about these?)

I'm not asking speedscope to support what I want, just curious if there is easier way to achieve my target (for now I'm using python to plot data seems inefficient, and static)

@IntelligenceGeneral
Copy link
Author

by the way, the readMe-admin is still not detail enough for a naive user who want to modify ->rebuild? ->publish ->depoly ?

hope there is a readMe for someone like me to modify -> rebuild -> publish (by the way I don't know where to see the Js console for the trace file load error)

@IntelligenceGeneral
Copy link
Author

hi @jlfwong could you give me a brief guide to add string pid/tid support?

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