# Function rustc_query_impl::profiling_support::alloc_self_profile_query_strings_for_query_cache

source ·

    pub(crate) fn alloc_self_profile_query_strings_for_query_cache<'tcx, C>(
        tcx: TyCtxt<'tcx>,
        query_name: &'static str,
        query_cache: &C,
        string_cache: &mut QueryKeyStringCache
    )where
        C: QueryCache,
        C::Key: Debug + Clone,

Expand description

Allocate the self-profiling query strings for a single query cache. This method is called from `alloc_self_profile_query_strings` which knows all the queries via macro magic.