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

Migrate from Duration Events to Complete Events #34

Open
saphal1998 opened this issue Aug 31, 2020 · 0 comments
Open

Migrate from Duration Events to Complete Events #34

saphal1998 opened this issue Aug 31, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@saphal1998
Copy link
Collaborator

saphal1998 commented Aug 31, 2020

Feature request

The migration of Duration events to Complete events would be extremely useful here, as they essentially capture the same information in half the file size.

Why it is needed

For more context, please read the Complete Events section of Trace Event Format Document. Theoretically, this should reduce the file size by a factor of 2 🎉

Possible implementation

Keeping track of current and last active nodes, we can clearly determine all the events that are starting and ending at a particular timestamp.

A way to implement this would be to add all the start events (along with their timestamp of starting) in a hashMap, and only add the chrome events object after they have completed (duration can be obtained by subtracting end/current and start timestamps)

@saphal1998 saphal1998 added the enhancement New feature or request label Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant