Skip to content

Instantly share code, notes, and snippets.

@kevingosse
Created May 18, 2020 11:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevingosse/85fa56a4cca449401e61c5017e2e320c to your computer and use it in GitHub Desktop.
Save kevingosse/85fa56a4cca449401e61c5017e2e320c to your computer and use it in GitHub Desktop.
#if defined(FEATURE_EVENT_TRACE)
// We are explicitly checking whether the event is enabled here.
// Unfortunately some of the ETW macros do not check whether the ETW feature is enabled.
// The ones that do are much less efficient.
if (EVENT_ENABLED(GCAllocationTick_V3))
{
fire_etw_allocation_event (etw_allocation_running_amount[etw_allocation_index], gen_number, acontext->alloc_ptr);
}
#endif //FEATURE_EVENT_TRACE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment