зеркало из https://github.com/dotnet/performance.git
Add logging time on thread (#1568)
* Remove extraneous return statement. * Add logging time on thread
This commit is contained in:
Родитель
0a33bbdafd
Коммит
0debe3a443
|
@ -160,8 +160,6 @@ Suppress internal Crossgen2 parallelism
|
|||
|
||||
for reffile in referencefilenames:
|
||||
crossgen2args.extend(['-r', os.path.join(self.coreroot, reffile)])
|
||||
|
||||
return crossgen2args
|
||||
|
||||
elif compiletype == const.CROSSGEN2_COMPOSITE:
|
||||
# composite rsp filename: ..\example.dll.rsp
|
||||
|
|
|
@ -42,6 +42,7 @@ namespace ScenarioMeasurement
|
|||
|
||||
var processTimeParser = new ProcessTimeParser();
|
||||
Counter processTimeCounter = null;
|
||||
Counter timeOnThread = null;
|
||||
if (!Util.IsWindows())
|
||||
{
|
||||
processName = "corerun";
|
||||
|
@ -52,15 +53,27 @@ namespace ScenarioMeasurement
|
|||
{
|
||||
processTimeCounter = counter;
|
||||
}
|
||||
if (counter.Name == "Time on Thread")
|
||||
{
|
||||
timeOnThread = counter;
|
||||
}
|
||||
}
|
||||
|
||||
return new[] {
|
||||
var counters = new List<Counter> {
|
||||
processTimeCounter,
|
||||
new Counter() { Name = "Loading Interval", MetricName = "ms", DefaultCounter=false, TopCounter=true, Results = loadingParser.Intervals.ToArray() },
|
||||
new Counter() { Name = "Emitting Interval", MetricName = "ms", DefaultCounter=false, TopCounter=true, Results = emittingParser.Intervals.ToArray() },
|
||||
new Counter() { Name = "Jit Interval", MetricName = "ms", DefaultCounter=false, TopCounter=true, Results = jittingParser.Intervals.ToArray() },
|
||||
new Counter() { Name = "Compilation Interval", MetricName = "ms", DefaultCounter=false, TopCounter=true, Results = compilationParser.Intervals.ToArray() }
|
||||
};
|
||||
|
||||
// Time on Thread is currently only supported on Windows.
|
||||
if(timeOnThread != null)
|
||||
{
|
||||
counters.Add(timeOnThread);
|
||||
}
|
||||
|
||||
return counters.ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче