public DataSet(Profiler profiler, byte *startPtr, long length, TargetProcessPointer nativeStartPosition, TargetProcessPointer nativeRootFuncInfoPosition, double cpuUsage, bool isFirst, bool is64Bit) : base(nativeStartPosition, nativeRootFuncInfoPosition, startPtr, length, cpuUsage, isFirst, is64Bit) { this.profiler = profiler; }
unsafe void AddDataset(byte *ptr, TargetProcessPointer nativeStartPosition, long offset, long length, bool isFirst, TargetProcessPointer nativeRootFuncInfoPosition) { using (DataSet dataSet = new DataSet(this, ptr + offset, length, nativeStartPosition, nativeRootFuncInfoPosition, isFirst, is64Bit)) { lock (this.dataWriter) { this.dataWriter.WriteDataSet(dataSet); if (usePerformanceCounters) { if (performanceCounterInstanceName == null) { performanceCounterInstanceName = PerformanceCounterDescriptor.GetProcessInstanceName(profilee.Id); } if (performanceCounterInstanceName == null) { usePerformanceCounters = false; LogString("Warning: One or more performance counters could not be accessed. " + "Please ensure that the perfmon service is enabled and running. " + "If the problem still persists try rebuilding the performance counters " + "by executing \"lodctr /R\" from a command line with administrative rights."); } } foreach (var counter in performanceCounters) { counter.Collect(performanceCounterInstanceName); } } } }
unsafe void AddDataset(byte *ptr, TargetProcessPointer nativeStartPosition, long offset, long length, double cpuUsage, bool isFirst, TargetProcessPointer nativeRootFuncInfoPosition) { using (DataSet dataSet = new DataSet(this, ptr + offset, length, nativeStartPosition, nativeRootFuncInfoPosition, cpuUsage, isFirst, is64Bit)) { lock (this.dataWriter) { this.dataWriter.WriteDataSet(dataSet); } } }
internal unsafe void *TranslatePointer(TargetProcessPointer ptr) { if (this.is64Bit) { return(TranslatePointer64(ptr.To64())); } else { return(TranslatePointer32(ptr.To32())); } }
unsafe void AddDataset(byte *ptr, TargetProcessPointer nativeStartPosition, long offset, long length, bool isFirst, TargetProcessPointer nativeRootFuncInfoPosition) { using (DataSet dataSet = new DataSet(this, ptr + offset, length, nativeStartPosition, nativeRootFuncInfoPosition, isFirst, is64Bit)) { lock (this.dataWriter) { this.dataWriter.WriteDataSet(dataSet); if (performanceCounterInstanceName == null) { performanceCounterInstanceName = PerformanceCounterDescriptor.GetProcessInstanceName(profilee.Id); } if (performanceCounterInstanceName == null) { LogString("instance not found!"); } foreach (var counter in performanceCounters) { counter.Collect(performanceCounterInstanceName); } } } }
internal unsafe override void *TranslatePointer(TargetProcessPointer ptr) { return(this.profiler.TranslatePointer(ptr)); }
internal unsafe override void* TranslatePointer(TargetProcessPointer ptr) { return profiler.TranslatePointer(ptr); }
public DataSet(Profiler profiler, byte *startPtr, long length, TargetProcessPointer nativeStartPosition, TargetProcessPointer nativeRootFuncInfoPosition, bool isFirst, bool is64Bit) : base(nativeStartPosition, nativeRootFuncInfoPosition, startPtr, length, isFirst, is64Bit) { this.profiler = profiler; }
internal unsafe void* TranslatePointer(TargetProcessPointer ptr) { if (is64Bit) return TranslatePointer64(ptr.To64()); else return TranslatePointer32(ptr.To32()); }
unsafe void AddDataset(byte *ptr, TargetProcessPointer nativeStartPosition, long offset, long length, bool isFirst, TargetProcessPointer nativeRootFuncInfoPosition) { using (DataSet dataSet = new DataSet(this, ptr + offset, length, nativeStartPosition, nativeRootFuncInfoPosition, isFirst, is64Bit)) { lock (dataWriter) { dataWriter.WriteDataSet(dataSet); if (usePerformanceCounters) { if (performanceCounterInstanceName == null) performanceCounterInstanceName = PerformanceCounterDescriptor.GetProcessInstanceName(profilee.Id); if (performanceCounterInstanceName == null) { usePerformanceCounters = false; LogString("Warning: One or more performance counters could not be accessed. " + "Please ensure that the perfmon service is enabled and running. " + "If the problem still persists try rebuilding the performance counters " + "by executing \"lodctr /R\" from a command line with administrative rights."); } } foreach (var counter in performanceCounters) counter.Collect(performanceCounterInstanceName); } } }
unsafe void AddDataset(byte *ptr, TargetProcessPointer nativeStartPosition, long offset, long length, bool isFirst, TargetProcessPointer nativeRootFuncInfoPosition) { using (DataSet dataSet = new DataSet(this, ptr + offset, length, nativeStartPosition, nativeRootFuncInfoPosition, isFirst, is64Bit)) { lock (this.dataWriter) { this.dataWriter.WriteDataSet(dataSet); if (performanceCounterInstanceName == null) performanceCounterInstanceName = PerformanceCounterDescriptor.GetProcessInstanceName(profilee.Id); if (performanceCounterInstanceName == null) LogString("instance not found!"); foreach (var counter in performanceCounters) counter.Collect(performanceCounterInstanceName); } } }
unsafe void AddDataset(byte *ptr, TargetProcessPointer nativeStartPosition, long offset, long length, double cpuUsage, bool isFirst, TargetProcessPointer nativeRootFuncInfoPosition) { using (DataSet dataSet = new DataSet(this, ptr + offset, length, nativeStartPosition, nativeRootFuncInfoPosition, cpuUsage, isFirst, is64Bit)) { lock (this.dataWriter) { this.dataWriter.WriteDataSet(dataSet); } } }