Skip to content

Commit 2c1ed0d

Browse files
authored
Merge pull request #100 from michaelwoerister/virtual-instead-of-reserved-string-ids
Add API for overriding initial event_id before recording an event and bump version to 0.6.0
2 parents 8d2d4fd + 6925f2d commit 2c1ed0d

File tree

9 files changed

+30
-7
lines changed

9 files changed

+30
-7
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [0.6.0] - 2019-12-11
4+
### Added
5+
- `measureme`: Added `SerializationSink::write_bytes_atomic` that optimizes handling of existing buffers ([GH-97])
6+
7+
### Changed
8+
- `summarize`: Fixed a crash when incr_cache_load events would have child events ([GH-93])
9+
- `measureme`: Replaced notion of "reserved" StringIds with simpler "virtual" StringIds ([GH-98])
10+
311
## [0.5.0] - 2019-12-02
412
### Added
513
- `flamegraph`: new tool that uses the `inferno` crate to generate flamegraph svg files ([GH-73])
@@ -54,3 +62,6 @@
5462
[GH-84]: https://github.com/rust-lang/measureme/pull/84
5563
[GH-87]: https://github.com/rust-lang/measureme/pull/87
5664
[GH-90]: https://github.com/rust-lang/measureme/pull/90
65+
[GH-93]: https://github.com/rust-lang/measureme/pull/93
66+
[GH-97]: https://github.com/rust-lang/measureme/pull/97
67+
[GH-98]: https://github.com/rust-lang/measureme/pull/98

analyzeme/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "analyzeme"
3-
version = "0.1.0"
3+
version = "0.6.0"
44
authors = ["Wesley Wiser <wwiser@gmail.com>", "Michael Woerister <michaelwoerister@posteo>"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"

crox/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "crox"
3-
version = "0.1.0"
3+
version = "0.6.0"
44
authors = ["Wesley Wiser <wwiser@gmail.com>"]
55
edition = "2018"
66

flamegraph/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "flamegraph"
3-
version = "0.1.0"
3+
version = "0.6.0"
44
authors = ["Wesley Wiser <wwiser@gmail.com>", "Michael Woerister <michaelwoerister@posteo>"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"

measureme/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "measureme"
3-
version = "0.5.0"
3+
version = "0.6.0"
44
authors = ["Wesley Wiser <wwiser@gmail.com>", "Michael Woerister <michaelwoerister@posteo>"]
55
edition = "2018"
66
description = "Support crate for rustc's self-profiling feature"

measureme/src/profiler.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,3 +155,15 @@ impl<'a, S: SerializationSink> Drop for TimingGuard<'a, S> {
155155
self.profiler.record_raw_event(&raw_event);
156156
}
157157
}
158+
159+
impl<'a, S: SerializationSink> TimingGuard<'a, S> {
160+
161+
/// This method set a new `event_id` right before actually recording the
162+
/// event.
163+
#[inline]
164+
pub fn finish_with_override_event_id(mut self, event_id: StringId) {
165+
self.event_id = event_id;
166+
// Let's be explicit about it: Dropping the guard will record the event.
167+
drop(self)
168+
}
169+
}

mmview/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mmview"
3-
version = "0.1.0"
3+
version = "0.6.0"
44
authors = ["Wesley Wiser <wwiser@gmail.com>", "Michael Woerister <michaelwoerister@posteo>"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"

stack_collapse/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "stack_collapse"
3-
version = "0.1.0"
3+
version = "0.6.0"
44
authors = ["Wesley Wiser <wwiser@gmail.com>", "Michael Woerister <michaelwoerister@posteo>"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"

summarize/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "summarize"
3-
version = "0.1.0"
3+
version = "0.6.0"
44
authors = ["Wesley Wiser <wwiser@gmail.com>", "Michael Woerister <michaelwoerister@posteo>"]
55
edition = "2018"
66
license = "MIT OR Apache-2.0"

0 commit comments

Comments
 (0)