-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathSummaryStatement.cs
31 lines (27 loc) · 1.13 KB
/
SummaryStatement.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using System;
namespace ABLProfilerConverter
{
internal class SummaryStatement
{
public SummaryStatement(int Id, int LineNumber, int StatementCount, double ActualTime, double TotalCumulativeTime)
{
this.Id = Id;
this.LineNumber = LineNumber;
this.StatementCount = StatementCount;
this.TotalActualTime = TimeSpan.FromSeconds(ActualTime);
this.TotalCumulativeTime = TimeSpan.FromSeconds(TotalCumulativeTime);
this.ActualTime = this.TotalActualTime / this.StatementCount;
this.CumulativeTime = this.TotalCumulativeTime / this.StatementCount;
}
public int Id { get; set; }
public int LineNumber { get; set; }
public int StatementCount { get; set; }
public TimeSpan ActualTime { get; set; }
public TimeSpan TotalActualTime { get; set; }
public TimeSpan CumulativeTime { get; set; }
public TimeSpan TotalCumulativeTime { get; set; }
public int ParentId { get; set; }
public double SessionPercent { get; set; }
public double PerProcedurePercent { get; set; }
}
}