Skip to content

[Speedscope] Remove col field#690

Open
AndrewNolte wants to merge 1 commit intobenfred:masterfrom
AndrewNolte:speedscope-rm-col
Open

[Speedscope] Remove col field#690
AndrewNolte wants to merge 1 commit intobenfred:masterfrom
AndrewNolte:speedscope-rm-col

Conversation

@AndrewNolte
Copy link
Copy Markdown

I noticed the generated json has a lot of col: null, and that py-spy doesn't ever write this. This field isn't needed in the output, so this can reduce the file size.

I'm open to suggestions on whether the commented out code should be there, I think it's useful to know that this field does exist. If the col is optionally written in the future, we can add #[serde(skip_serializing_if = "Option::is_none")] to it, but adding that now introduces an unnecessary branch.

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 this pull request may close these issues.

1 participant