Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit cba7007

Browse filesBrowse files
tyao1facebook-github-bot
authored andcommitted
Add more time loggings in try_saved_state
Reviewed By: lynnshaoyu Differential Revision: D76608821 fbshipit-source-id: 7ab90878c8f474ee7019cd79caf024f886eefa55
1 parent 60b906b commit cba7007
Copy full SHA for cba7007

1 file changed

+6Lines changed: 6 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎compiler/crates/relay-compiler/src/file_source/watchman_file_source.rs‎

Copy file name to clipboardExpand all lines: compiler/crates/relay-compiler/src/file_source/watchman_file_source.rs
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,12 @@ impl WatchmanFileSource {
293293
}
294294

295295
// Then await the changed files query.
296+
let saved_state_await_changed_files_time =
297+
perf_logger_event.start("saved_state_await_changed_files_time");
296298
let file_source_result = changed_files_result_future
297299
.await
298300
.map_err(|_| "query failed")??;
301+
perf_logger_event.stop(saved_state_await_changed_files_time);
299302

300303
compiler_state
301304
.pending_file_source_changes
@@ -306,7 +309,10 @@ impl WatchmanFileSource {
306309
if let Some(update_compiler_state_from_saved_state) =
307310
&self.config.update_compiler_state_from_saved_state
308311
{
312+
let update_compiler_state_from_saved_state_time =
313+
perf_logger_event.start("update_compiler_state_from_saved_state_time");
309314
update_compiler_state_from_saved_state(&mut compiler_state, &self.config);
315+
perf_logger_event.stop(update_compiler_state_from_saved_state_time);
310316
}
311317

312318
match perf_logger_event.time("merge_file_source_changes", || {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.