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

use meta data in crox events to be able to merge multiple logs #84

Merged
merged 4 commits into from
Nov 12, 2019

Conversation

andjo403
Copy link
Contributor

@andjo403 andjo403 commented Nov 9, 2019

add parameter --dir that merges all events in the directory to one chrome_profiler.json file.
makes it possible to give multiple file_prefixes and will merge all of them to one chrome_profiler.json file.
also use the crate name from the cmd metadata to show what process_id is from what crate build.

@andjo403 andjo403 force-pushed the multi_process_support branch 2 times, most recently from e56a770 to 6d3a912 Compare November 11, 2019 17:31
deserialize metadata and store it in ProfilingData.
use the start_time as base for all event times.

to be able to use merge multiple crox logs:
use the porcess_id for the crox events.
use duration from epoch as timestamp in the crox events.
if dir is added all events files will be located in that dir
and then all event will be merged to one chrome_profiler.json file
@andjo403 andjo403 force-pushed the multi_process_support branch from 6d3a912 to bd7018e Compare November 11, 2019 19:16
Copy link
Member

@wesleywiser wesleywiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this looks awesome! 🎉

tools_lib/src/profiling_data.rs Outdated Show resolved Hide resolved
@wesleywiser
Copy link
Member

Some screenshots from doing RUSTFLAGS="-Z self-profile" cargo build on the regex crate:

collapsed

expanded

@andjo403
Copy link
Contributor Author

fixed the comment

@wesleywiser wesleywiser merged commit 9476b16 into rust-lang:master Nov 12, 2019
@andjo403 andjo403 deleted the multi_process_support branch November 12, 2019 19:22
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.

2 participants