diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2020-10-22 08:51:31 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <eddyb@lyken.rs> | 2022-06-13 07:56:47 +0000 |
| commit | d76573abd19d50c25c5b58ec7fc5cfef579e6eef (patch) | |
| tree | dfc4bfb7dbb0054bff1ced5d5c0ed836b63d4718 /compiler/rustc_query_impl | |
| parent | 083721a1a7365d3afe1521cd2661b2201aac0450 (diff) | |
| download | rust-d76573abd19d50c25c5b58ec7fc5cfef579e6eef.tar.gz rust-d76573abd19d50c25c5b58ec7fc5cfef579e6eef.zip | |
Integrate measureme's hardware performance counter support.
Diffstat (limited to 'compiler/rustc_query_impl')
| -rw-r--r-- | compiler/rustc_query_impl/src/profiling_support.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_query_impl/src/profiling_support.rs b/compiler/rustc_query_impl/src/profiling_support.rs index b20aa7b5346..551f094209e 100644 --- a/compiler/rustc_query_impl/src/profiling_support.rs +++ b/compiler/rustc_query_impl/src/profiling_support.rs @@ -275,6 +275,9 @@ fn alloc_self_profile_query_strings_for_query_cache<'tcx, C>( let query_name = profiler.get_or_alloc_cached_string(query_name); let event_id = event_id_builder.from_label(query_name).to_string_id(); + // FIXME(eddyb) make this O(1) by using a pre-cached query name `EventId`, + // instead of passing the `DepNodeIndex` to `finish_with_query_invocation_id`, + // when recording the event in the first place. let mut query_invocation_ids = Vec::new(); query_cache.iter(&mut |_, _, i| { query_invocation_ids.push(i.into()); |
