Skip to content
Snippets Groups Projects
Commit 22abbc10 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Merge pull request #772 from karenfeng/ui-843

Show app duration
parents abfa9e6f b3ae5b25
No related branches found
No related tags found
No related merge requests found
......@@ -128,6 +128,8 @@ class SparkContext(
private[spark] val ui = new SparkUI(this)
ui.bind()
val startTime = System.currentTimeMillis()
// Add each JAR given through the constructor
if (jars != null) {
jars.foreach { addJar(_) }
......
......@@ -49,7 +49,11 @@ private[spark] class IndexPage(parent: JobProgressUI) {
val summary: NodeSeq =
<div>
<ul class="unstyled">
<li>
<li>
<strong>Duration: </strong>
{parent.formatDuration(now - listener.sc.startTime)}
</li>
<li>
<strong>CPU time: </strong>
{parent.formatDuration(listener.totalTime + activeTime)}
</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment