diff --git a/CHANGELOG.md b/CHANGELOG.md index 14951a2..286e688 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [0.6.0] - 2019-12-11 +### Added +- `measureme`: Added `SerializationSink::write_bytes_atomic` that optimizes handling of existing buffers ([GH-97]) + +### Changed +- `summarize`: Fixed a crash when incr_cache_load events would have child events ([GH-93]) +- `measureme`: Replaced notion of "reserved" StringIds with simpler "virtual" StringIds ([GH-98]) + ## [0.5.0] - 2019-12-02 ### Added - `flamegraph`: new tool that uses the `inferno` crate to generate flamegraph svg files ([GH-73]) @@ -54,3 +62,6 @@ [GH-84]: https://github.com/rust-lang/measureme/pull/84 [GH-87]: https://github.com/rust-lang/measureme/pull/87 [GH-90]: https://github.com/rust-lang/measureme/pull/90 +[GH-93]: https://github.com/rust-lang/measureme/pull/93 +[GH-97]: https://github.com/rust-lang/measureme/pull/97 +[GH-98]: https://github.com/rust-lang/measureme/pull/98 diff --git a/analyzeme/Cargo.toml b/analyzeme/Cargo.toml index dd7b0e4..218990d 100644 --- a/analyzeme/Cargo.toml +++ b/analyzeme/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "analyzeme" -version = "0.1.0" +version = "0.6.0" authors = ["Wesley Wiser ", "Michael Woerister "] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/crox/Cargo.toml b/crox/Cargo.toml index 9ddf0d8..8da38ac 100644 --- a/crox/Cargo.toml +++ b/crox/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crox" -version = "0.1.0" +version = "0.6.0" authors = ["Wesley Wiser "] edition = "2018" diff --git a/flamegraph/Cargo.toml b/flamegraph/Cargo.toml index e62189f..5cbc310 100644 --- a/flamegraph/Cargo.toml +++ b/flamegraph/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "flamegraph" -version = "0.1.0" +version = "0.6.0" authors = ["Wesley Wiser ", "Michael Woerister "] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/measureme/Cargo.toml b/measureme/Cargo.toml index d3b028d..3d413a3 100644 --- a/measureme/Cargo.toml +++ b/measureme/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "measureme" -version = "0.5.0" +version = "0.6.0" authors = ["Wesley Wiser ", "Michael Woerister "] edition = "2018" description = "Support crate for rustc's self-profiling feature" diff --git a/measureme/src/profiler.rs b/measureme/src/profiler.rs index cf96257..bba579b 100644 --- a/measureme/src/profiler.rs +++ b/measureme/src/profiler.rs @@ -155,3 +155,15 @@ impl<'a, S: SerializationSink> Drop for TimingGuard<'a, S> { self.profiler.record_raw_event(&raw_event); } } + +impl<'a, S: SerializationSink> TimingGuard<'a, S> { + + /// This method set a new `event_id` right before actually recording the + /// event. + #[inline] + pub fn finish_with_override_event_id(mut self, event_id: StringId) { + self.event_id = event_id; + // Let's be explicit about it: Dropping the guard will record the event. + drop(self) + } +} diff --git a/mmview/Cargo.toml b/mmview/Cargo.toml index 4d4516b..e4c8041 100644 --- a/mmview/Cargo.toml +++ b/mmview/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mmview" -version = "0.1.0" +version = "0.6.0" authors = ["Wesley Wiser ", "Michael Woerister "] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/stack_collapse/Cargo.toml b/stack_collapse/Cargo.toml index 7d52e87..70c2a9c 100644 --- a/stack_collapse/Cargo.toml +++ b/stack_collapse/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "stack_collapse" -version = "0.1.0" +version = "0.6.0" authors = ["Wesley Wiser ", "Michael Woerister "] edition = "2018" license = "MIT OR Apache-2.0" diff --git a/summarize/Cargo.toml b/summarize/Cargo.toml index b3e8584..f1a5346 100644 --- a/summarize/Cargo.toml +++ b/summarize/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "summarize" -version = "0.1.0" +version = "0.6.0" authors = ["Wesley Wiser ", "Michael Woerister "] edition = "2018" license = "MIT OR Apache-2.0"