Skip to content

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! 🎉

@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