-
Notifications
You must be signed in to change notification settings - Fork 715
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
Add EtlToSpeedScope UserCommand #1690
base: main
Are you sure you want to change the base?
Conversation
its been a couple of months since this was looked at - just wanted to throw a quick bump here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pinging this. A couple of comments below.
{ | ||
throw new ApplicationException("Invalid number to lookup with."); | ||
} | ||
etlFile.CPUStacks().LookupWarmSymbols(warmSymbolLookupThreshold); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The call to CPUStacks()
creates a new instance of Stacks
unconditionally, meaning that the last line of this method will override this line if the caller specifies a process filter. You will want to save the StackSource
in a local variable and then use it to generate the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correcting myself - the filter does stick. However, the stacks get calculated twice.
} | ||
etlFile.CPUStacks().LookupWarmSymbols(warmSymbolLookupThreshold); | ||
} | ||
SpeedScopeStackSourceWriter.WriteStackViewAsJson(etlFile.CPUStacks().StackSource, outputName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lookupWarmSymbolsMinimumValue
only has an impact if a process filter is specified. Presumably this should be used unconditionally?
Resolves #1688
Adds a UserCommand to convert etl files to .speedscope.json for data parsing. Added some parameters to filter the data down as well that are also used for other commands like process to filter on and warm symbol lookups.