MCPcopy Create free account
hub / github.com/GCWing/BitFun / record_tauri_command_elapsed

Method record_tauri_command_elapsed

src/apps/desktop/src/startup_trace.rs:85–102  ·  view source on GitHub ↗
(
        &self,
        command: impl Into<String>,
        target: Option<&str>,
        started_at: Instant,
    )

Source from the content-addressed store, hash-verified

83 }
84
85 pub fn record_tauri_command_elapsed(
86 &self,
87 command: impl Into<String>,
88 target: Option<&str>,
89 started_at: Instant,
90 ) -> u128 {
91 let duration_ms = elapsed_ms(started_at);
92 let command = command.into();
93 self.record_event(
94 "native_step_end".to_string(),
95 Some("tauri_command".to_string()),
96 Some(command.clone()),
97 Some(command),
98 target.map(ToOwned::to_owned),
99 Some(duration_ms),
100 );
101 duration_ms
102 }
103
104 pub fn snapshot(&self) -> DesktopStartupTraceSnapshot {
105 let events = self

Callers 15

initialize_mcp_serversFunction · 0.80
get_session_thread_goalFunction · 0.80
restore_session_viewFunction · 0.80
get_available_modesFunction · 0.80
get_current_workspaceFunction · 0.80
get_recent_workspacesFunction · 0.80
get_opened_workspacesFunction · 0.80
list_miniappsFunction · 0.80

Calls 3

elapsed_msFunction · 0.85
record_eventMethod · 0.45
cloneMethod · 0.45

Tested by 1