public InstrumentationPoint(string name, InstrumentationAPI apiRoot) { parent = apiRoot; Name = name; AssemblyName = ""; instrumentationPointAssemblyDefinition = null; instrumentationPointTypeDefinition = null; instrumentationPointMethodDefinition = null; }
public void EnableBootstrap() { BootstrapBrokerInstanceHelper bootstrapHelper = new BootstrapBrokerInstanceHelper(this); InstrumentationAPI iapi = this; foreach (InstrumentationPoint i in mapInstrumentationPointNamesToSpecifications.Values) { InstrumentationPoint ctor = new InstrumentationPoint("ctor", iapi) .FindInAssemblyNamed(i.instrumentationPointAssemblyDefinition.Name.Name) .FindInTypeNamed(i.instrumentationPointTypeDefinition.Name) .FindMethodNamed(".ctor"); bootstrapHelper.StartingAtEntry(ctor); } }
public BootstrapBrokerInstanceHelper(InstrumentationAPI i) : base(i) { }
/// <summary> /// Helper for commonly used System.Diagnostics.Stopwatch functionality in DT. /// Not a feature complete copy of the Stopwatch class. /// /// Weaves as follows: /// var sw = Stopwatch.StartNew(); /// sw.Stop(); /// do something with sw.ElapsedMilliseconds /// /// sw.ElapsedMilliseconds is a wholesome choice here since it adjusts for machine/OS-specific timing. /// </summary> public StopwatchHelper(InstrumentationAPI i) : base(i) { }
public MeasurementHandler(InstrumentationAPI i) { instrumentationSource = i; }
public SnapshotHandler(InstrumentationAPI i) { instrumentationSource = i; }
public InstrumentationHelper(InstrumentationAPI instrumentation) { instrumentationAPI = instrumentation; }
public DelayHandler(InstrumentationAPI i) { instrumentationSource = i; }
public SnapshotLocalValueHelper(InstrumentationAPI i, string fieldName) : base(i) { snapshotFieldName = fieldName; }
public SleepHelper(InstrumentationAPI i, int sleepSeconds) : base(i) { nSecondsSleep = sleepSeconds; }