public MeasurementBlockEventTraceWatcher(EventTraceSession session) : base(typeof(MeasurementBlockEventTraceWatcher).GUID, session) { string path = Path.Combine(Path.GetTempPath(), "Microsoft.VisualStudio.Diagnostics.Measurement.Native.dll"); ExportResource("Microsoft.VisualStudio.Diagnostics.PerformanceProvider.MeasurementBlockManifest.xml", path); LoadManifest("Microsoft.VisualStudio.Diagnostics.PerformanceProvider.MeasurementBlockManifest.xml"); }
public WpfEventTraceWatcher(EventTraceSession session) : base(typeof(WpfEventTraceWatcher).GUID, session) { //C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll string path = typeof(System.Environment).Assembly.Location; if (path.Contains("Framework64")) { path = path.Replace("Framework64", "Framework"); } Uri uri = new Uri(path); Uri wpfman = new Uri(uri, @"wpf\wpf-etw.man"); if (File.Exists(wpfman.LocalPath)) { LoadManifest(wpfman); FindEvents(wpfman.LocalPath); } }
public PerformanceEventTraceWatcher(EventTraceSession session) : base(typeof(PerformanceBlock).GUID, session) { LoadManifest("Microsoft.VisualStudio.Diagnostics.PerformanceProvider.PerformanceProviderManifest.xml"); }
public EventTraceWatcher(Guid providerId, EventTraceSession session) { this.providerId = providerId; this.session = session; session.EventArrived += new EventHandler <EventRecordArgs>(InternalEventArrived); }