Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Basic infrastructure for binder tracing (dotnet/coreclr#27383)
Browse files Browse the repository at this point in the history
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
  • Loading branch information
elinor-fung authored and jkotas committed Oct 30, 2019
1 parent a780bff commit dd6ee3f
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,25 @@ private void ActivityChanging(AsyncLocalValueChangedArgs<ActivityInfo?> args)
// currently we do nothing, as that seems better than setting to Guid.Emtpy.
}

// Assembly load runtime activity name
private const string AssemblyLoadName = "AssemblyLoad";

/// <summary>
/// Called by the runtime to start an assembly load activity
/// </summary>
private static void StartAssemblyLoad(ref Guid activityId, ref Guid relatedActivityId)
{
Instance.OnStart(NativeRuntimeEventSource.Log.Name, AssemblyLoadName, 0, ref activityId, ref relatedActivityId, EventActivityOptions.Recursive);
}

/// <summary>
/// Called by the runtime to stop an assembly load activity
/// </summary>
private static void StopAssemblyLoad(ref Guid activityId)
{
Instance.OnStop(NativeRuntimeEventSource.Log.Name, AssemblyLoadName, 0, ref activityId);
}

/// <summary>
/// Async local variables have the property that the are automatically copied whenever a task is created and used
/// while that task is running. Thus m_current 'flows' to any task that is caused by the current thread that
Expand Down

0 comments on commit dd6ee3f

Please sign in to comment.