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

Speedscope output confused by multiple PIDs #386

Open
viraptor opened this issue Jan 4, 2024 · 0 comments
Open

Speedscope output confused by multiple PIDs #386

viraptor opened this issue Jan 4, 2024 · 0 comments
Labels

Comments

@viraptor
Copy link

viraptor commented Jan 4, 2024

When I try to format a trace with multiple PIDs into a speedscope output, I get an error from the loader:

Importing as speedscope json file [import.66b10bc4.js:121:3594](https://www.speedscope.app/import.66b10bc4.js)
Failed to load format Error: Expected samples.length (20163) to equal weights.length (20367)

Looking at the actual input, I get:

➜  ~ < /tmp/rbspy.trace.ss jq '.profiles[].samples | length' 
20163
204
➜  ~ < /tmp/rbspy.trace.ss jq '.profiles[].weights | length'
20367
20367

It seems like the weights are merged and copied for both PIDs rather than split the same as samples.

@acj acj added the bug label Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants