commit
22abbc10d6
|
@ -128,6 +128,8 @@ class SparkContext(
|
||||||
private[spark] val ui = new SparkUI(this)
|
private[spark] val ui = new SparkUI(this)
|
||||||
ui.bind()
|
ui.bind()
|
||||||
|
|
||||||
|
val startTime = System.currentTimeMillis()
|
||||||
|
|
||||||
// Add each JAR given through the constructor
|
// Add each JAR given through the constructor
|
||||||
if (jars != null) {
|
if (jars != null) {
|
||||||
jars.foreach { addJar(_) }
|
jars.foreach { addJar(_) }
|
||||||
|
|
|
@ -49,7 +49,11 @@ private[spark] class IndexPage(parent: JobProgressUI) {
|
||||||
val summary: NodeSeq =
|
val summary: NodeSeq =
|
||||||
<div>
|
<div>
|
||||||
<ul class="unstyled">
|
<ul class="unstyled">
|
||||||
<li>
|
<li>
|
||||||
|
<strong>Duration: </strong>
|
||||||
|
{parent.formatDuration(now - listener.sc.startTime)}
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
<strong>CPU time: </strong>
|
<strong>CPU time: </strong>
|
||||||
{parent.formatDuration(listener.totalTime + activeTime)}
|
{parent.formatDuration(listener.totalTime + activeTime)}
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue