File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 13
13
//! To create a [`Profiler`], call the [`Profiler::new()`] function and provide a `Path` with
14
14
//! the directory and file name for the trace files.
15
15
//!
16
- //! To record an event, call the [`Profiler::record_event ()`] method, passing a few arguments:
16
+ //! To record an event, call the [`Profiler::record_instant_event ()`] method, passing a few arguments:
17
17
//! - `event_kind`: a [`StringId`] which assigns an arbitrary category to the event
18
18
//! - `event_id`: a [`StringId`] which specifies the name of the event
19
- //! - `thread_id`: a `u64` id of the thread which is recording this event
20
- //! - `timestamp_kind`: a [`TimestampKind`] which specifies how this event should be treated by `measureme` tooling
19
+ //! - `thread_id`: a `u32` id of the thread which is recording this event
21
20
//!
22
21
//! Alternatively, events can also be recorded via the [`Profiler::start_recording_interval_event()`] method. This
23
22
//! method records a "start" event and returns a `TimingGuard` object that will automatically record
You can’t perform that action at this time.
0 commit comments