Skip to content

Commit

Permalink
display run time
Browse files Browse the repository at this point in the history
  • Loading branch information
XorSum committed Mar 4, 2024
1 parent 9018a07 commit 8e957c7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ case class EnginePage(parent: EngineTab) extends WebUIPage("") {
("Start Time", true, None),
("Finish Time", true, None),
("Duration", true, None),
("Run Time", true, None),
("CPU Time", true, None),
("Total Statements", true, None))

Expand Down Expand Up @@ -429,6 +430,7 @@ case class EnginePage(parent: EngineTab) extends WebUIPage("") {
<td> {formatDate(session.startTime)} </td>
<td> {if (session.endTime > 0) formatDate(session.endTime)} </td>
<td> {formatDuration(session.duration)} </td>
<td> {formatDuration(session.sessionRunTime)} </td>
<td> {formatDuration(session.sessionCpuTime / 1000000)} </td>
<td> {session.totalOperations} </td>
</tr>
Expand Down Expand Up @@ -486,6 +488,7 @@ private class StatementStatsPagedTable(
("Create Time", true, None),
("Finish Time", true, None),
("Duration", true, None),
("Run Time", true, None),
("CPU Time", true, None),
("Statement", true, None),
("State", true, None),
Expand Down Expand Up @@ -526,6 +529,7 @@ private class StatementStatsPagedTable(
<td >
{formatDuration(event.duration)}
</td>
<td> {formatDuration(event.operationRunTime.getOrElse(0L))} </td>
<td> {formatDuration(event.operationCpuTime.getOrElse(0L) / 1000000)} </td>
<td>
<span class="description-input">
Expand Down Expand Up @@ -596,6 +600,7 @@ private class SessionStatsTableDataSource(
case "Start Time" => Ordering.by(_.startTime)
case "Finish Time" => Ordering.by(_.endTime)
case "Duration" => Ordering.by(_.duration)
case "Run Time" => Ordering.by(_.sessionRunTime)
case "CPU Time" => Ordering.by(_.sessionCpuTime)
case "Total Statements" => Ordering.by(_.totalOperations)
case unknownColumn => throw new IllegalArgumentException(s"Unknown column: $unknownColumn")
Expand Down Expand Up @@ -632,6 +637,7 @@ private class StatementStatsTableDataSource(
case "Create Time" => Ordering.by(_.createTime)
case "Finish Time" => Ordering.by(_.completeTime)
case "Duration" => Ordering.by(_.duration)
case "Run Time" => Ordering.by(_.operationRunTime.getOrElse(0L))
case "CPU Time" => Ordering.by(_.operationCpuTime.getOrElse(0L))
case "Statement" => Ordering.by(_.statement)
case "State" => Ordering.by(_.state)
Expand Down

0 comments on commit 8e957c7

Please sign in to comment.