Пример #1
0
        protected override void WriteBeforePartitionExecutionTimeline()
        {
            QueryMetricsTextWriter.AppendNewlineToStringBuilder(stringBuilder);

            // Building the table for fetch execution ranges
            QueryMetricsTextWriter.AppendHeaderToStringBuilder(stringBuilder, QueryMetricsTextWriter.FetchExecutionRanges, indentLevel: 1);
            QueryMetricsTextWriter.AppendHeaderToStringBuilder(stringBuilder, PartitionExecutionTimelineTable.TopLine, indentLevel: 1);
            QueryMetricsTextWriter.AppendHeaderToStringBuilder(stringBuilder, PartitionExecutionTimelineTable.Header, indentLevel: 1);
            QueryMetricsTextWriter.AppendHeaderToStringBuilder(stringBuilder, PartitionExecutionTimelineTable.MiddleLine, indentLevel: 1);
        }
Пример #2
0
        protected override void WriteBeforeSchedulingMetrics()
        {
            QueryMetricsTextWriter.AppendNewlineToStringBuilder(stringBuilder);

            // Building the table for scheduling metrics
            QueryMetricsTextWriter.AppendHeaderToStringBuilder(stringBuilder, QueryMetricsTextWriter.SchedulingMetrics, indentLevel: 1);
            QueryMetricsTextWriter.AppendHeaderToStringBuilder(stringBuilder, SchedulingMetricsTable.TopLine, indentLevel: 1);
            QueryMetricsTextWriter.AppendHeaderToStringBuilder(stringBuilder, SchedulingMetricsTable.Header, indentLevel: 1);
            QueryMetricsTextWriter.AppendHeaderToStringBuilder(stringBuilder, SchedulingMetricsTable.MiddleLine, indentLevel: 1);
        }
Пример #3
0
 protected override void WriteAfterPartitionSchedulingTimeSpan()
 {
     QueryMetricsTextWriter.AppendHeaderToStringBuilder(
         stringBuilder,
         SchedulingMetricsTable.GetRow(
             this.lastSchedulingPartitionId,
             this.lastResponseTime.TotalMilliseconds.ToString("0.00"),
             this.lastRunTime.TotalMilliseconds.ToString("0.00"),
             this.lastWaitTime.TotalMilliseconds.ToString("0.00"),
             this.lastTurnaroundTime.TotalMilliseconds.ToString("0.00"),
             this.lastNumberOfPreemptions),
         indentLevel: 1);
 }
Пример #4
0
 protected override void WriteAfterFetchExecutionRange()
 {
     QueryMetricsTextWriter.AppendHeaderToStringBuilder(
         stringBuilder,
         PartitionExecutionTimelineTable.GetRow(
             this.lastFetchPartitionId,
             this.lastActivityId,
             this.lastStartTime.ToUniversalTime().ToString(DateTimeFormat),
             this.lastEndTime.ToUniversalTime().ToString(DateTimeFormat),
             (this.lastEndTime - this.lastStartTime).TotalMilliseconds.ToString("0.00"),
             this.lastFetchDocumentCount,
             this.lastFetchRetryCount),
         indentLevel: 1);
 }
Пример #5
0
 private static void AppendNewlineToStringBuilder(StringBuilder stringBuilder)
 {
     QueryMetricsTextWriter.AppendHeaderToStringBuilder(stringBuilder, string.Empty, 0);
 }
Пример #6
0
 protected override void WriteAfterSchedulingMetrics()
 {
     QueryMetricsTextWriter.AppendHeaderToStringBuilder(stringBuilder, SchedulingMetricsTable.BottomLine, indentLevel: 1);
 }
Пример #7
0
 protected override void WriteAfterPartitionExecutionTimeline()
 {
     QueryMetricsTextWriter.AppendHeaderToStringBuilder(stringBuilder, PartitionExecutionTimelineTable.BottomLine, indentLevel: 1);
 }
Пример #8
0
 protected override void WriteBeforeClientSideMetrics()
 {
     QueryMetricsTextWriter.AppendHeaderToStringBuilder(stringBuilder, QueryMetricsTextWriter.ClientSideQueryMetrics, indentLevel: 0);
 }
Пример #9
0
 protected override void WriteBeforeRuntimeExecutionTimes()
 {
     QueryMetricsTextWriter.AppendHeaderToStringBuilder(stringBuilder, QueryMetricsTextWriter.RuntimeExecutionTimes, indentLevel: 1);
 }
Пример #10
0
 protected override void WriteBeforeQueryPreparationTimes()
 {
     QueryMetricsTextWriter.AppendHeaderToStringBuilder(stringBuilder, QueryMetricsTextWriter.QueryPreparationTimes, indentLevel: 1);
 }