diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-10-31 14:23:38 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2024-11-09 17:55:39 +0000 |
| commit | 8e9bbc899c7a1913ff04d9af516efee900aeffd1 (patch) | |
| tree | ffae6ca1f59575e32ac1f07bef1ba77966952899 /compiler/rustc_query_impl/src/profiling_support.rs | |
| parent | bec24a25cd61c5d252701b9119e4fe887b274937 (diff) | |
| download | rust-8e9bbc899c7a1913ff04d9af516efee900aeffd1.tar.gz rust-8e9bbc899c7a1913ff04d9af516efee900aeffd1.zip | |
Move some code from Compiler::enter to GlobalCtxt::finish
Diffstat (limited to 'compiler/rustc_query_impl/src/profiling_support.rs')
| -rw-r--r-- | compiler/rustc_query_impl/src/profiling_support.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_query_impl/src/profiling_support.rs b/compiler/rustc_query_impl/src/profiling_support.rs index 5f989b264aa..7d80e54bf87 100644 --- a/compiler/rustc_query_impl/src/profiling_support.rs +++ b/compiler/rustc_query_impl/src/profiling_support.rs @@ -252,6 +252,8 @@ pub fn alloc_self_profile_query_strings(tcx: TyCtxt<'_>) { return; } + let _prof_timer = tcx.sess.prof.generic_activity("self_profile_alloc_query_strings"); + let mut string_cache = QueryKeyStringCache::new(); for alloc in super::ALLOC_SELF_PROFILE_QUERY_STRINGS.iter() { |
