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

The Firefox profiler output needs to generate a subcategory column for the frameTable #128

Open
mstange opened this issue Feb 13, 2025 · 2 comments · May be fixed by #129
Open

The Firefox profiler output needs to generate a subcategory column for the frameTable #128

mstange opened this issue Feb 13, 2025 · 2 comments · May be fixed by #129
Assignees

Comments

@mstange
Copy link

mstange commented Feb 13, 2025

It currently sets frameTable.subcategory to null, see here:

def frame_table
funcs = @stack_table_hash[:frame_table].fetch(:func)
lines = @stack_table_hash[:frame_table].fetch(:line)
size = funcs.length
none = [nil] * size
categories = @frame_categories.map(&:idx)
raise unless lines.size == funcs.size
{
address: [-1] * size,
inlineDepth: [0] * size,
category: categories,
subcategory: nil,
func: funcs,
nativeSymbol: none,
innerWindowID: none,
implementation: @frame_implementations,
line: lines,
column: none,
length: size
}
end

This does not conform to the type definitions in the Firefox profiler types, see firefox-devtools/profiler#5368 .

@mstange
Copy link
Author

mstange commented Feb 13, 2025

The relevant line of code was probably meant to say none instead of nil.

@joshuay03
Copy link
Collaborator

joshuay03 commented Feb 15, 2025

@mstange Thank you! Addressing in #129. Also thanks for adding back support for existing profiles in firefox-devtools/profiler#5369.

@joshuay03 joshuay03 self-assigned this Feb 15, 2025
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

Successfully merging a pull request may close this issue.

2 participants