Skip to content

Commit

Permalink
Fixed layout
Browse files Browse the repository at this point in the history
  • Loading branch information
sarutak committed May 13, 2015
1 parent 2319739 commit ac8842b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,15 @@ div#application-timeline, div#job-timeline {
}

#task-assignment-timeline div.legend-area {
float: right;
border: 1px solid #000000;
width: 554px;
}

#task-assignment-timeline .legend-area > svg {
width: 600px;
width: 100%;
height: 55px;
}

#task-assignment-timeline > .timeline-header:after {
content: "";
clear: both;
height: 0;
display: block;
visibility: hidden;
}

#task-assignment-timeline div.item.range {
padding: 0px;
height: 26px;
Expand Down Expand Up @@ -251,10 +243,6 @@ tr.corresponding-item-hover > td, tr.corresponding-item-hover > th {
margin: 0;
}

#task-assignment-timeline .control-panel {
float: left;
}

span.expand-application-timeline, span.expand-job-timeline,
span.expand-task-assignment-timeline {
cursor: pointer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,13 @@ function drawTaskAssignmentTimeline(groupArray, eventObjArray, minLaunchTime, zo
return "#task-" + taskIdx;
};

$(this).click(function() {
window.location.href = getSelectorForTaskEntry(this);
});

$(this).hover(
function() {
$(getSelectorForTaskEntry(this)).addClass("corresponding-item-hover");
$($(this).find("div.task-assignment-timeline-content")[0]).tooltip("show");
},
function() {
$(getSelectorForTaskEntry(this)).removeClass("corresponding-item-hover");
$($(this).find("div.task-assignment-timeline-content")[0])
.tooltip("hide");
}
Expand Down
22 changes: 8 additions & 14 deletions core/src/main/scala/org/apache/spark/ui/jobs/StagePage.scala
Original file line number Diff line number Diff line change
Expand Up @@ -515,15 +515,11 @@ private[ui] class StagePage(parent: StagesTab) extends WebUIPage("stage") {
}.sortWith { (uiDataL, uiDataR) =>
val taskInfoL = uiDataL.taskInfo
val launchTimeL = taskInfoL.launchTime
val finishTimeL = if (!taskInfoL.running) taskInfoL.finishTime else currentTime
val totalExecutionTimeL = finishTimeL - launchTimeL

val taskInfoR = uiDataR.taskInfo
val launchTimeR = taskInfoR.launchTime
val finishTimeR = if (!taskInfoR.running) taskInfoR.finishTime else currentTime
val totalExecutionTimeR = finishTimeR - launchTimeR

totalExecutionTimeL > totalExecutionTimeR
launchTimeL > launchTimeR
}.take(MAX_TIMELINE_TASKS).map { taskUIData =>
val taskInfo = taskUIData.taskInfo
val executorId = taskInfo.executorId
Expand Down Expand Up @@ -677,18 +673,16 @@ private[ui] class StagePage(parent: StagesTab) extends WebUIPage("stage") {

<span class="expand-task-assignment-timeline">
<span class="expand-task-assignment-timeline-arrow arrow-closed"></span>
<a>Event Timeline (Longest {numEffectiveTasks.min(MAX_TIMELINE_TASKS)} tasks)</a>
<a>Event Timeline (Most recent {numEffectiveTasks.min(MAX_TIMELINE_TASKS)} tasks)</a>
</span> ++
<div id="task-assignment-timeline" class="collapsed">
<div class="timeline-header">
<div class="control-panel">
<div id="task-assignment-timeline-zoom-lock">
<input type="checkbox"></input>
<span>Enable zooming</span>
</div>
<div class="control-panel">
<div id="task-assignment-timeline-zoom-lock">
<input type="checkbox"></input>
<span>Enable zooming</span>
</div>
{TIMELINE_LEGEND}
</div>
{TIMELINE_LEGEND}
</div> ++
<script type="text/javascript">
{Unparsed(s"drawTaskAssignmentTimeline(" +
Expand Down Expand Up @@ -769,7 +763,7 @@ private[ui] class StagePage(parent: StagesTab) extends WebUIPage("stage") {
val diskBytesSpilledSortable = maybeDiskBytesSpilled.map(_.toString).getOrElse("")
val diskBytesSpilledReadable = maybeDiskBytesSpilled.map(Utils.bytesToString).getOrElse("")

<tr id={"task-" + info.index}>
<tr id={"task-" + info.taskId}>
<td>{info.index}</td>
<td>{info.taskId}</td>
<td sorttable_customkey={info.attempt.toString}>{
Expand Down

0 comments on commit ac8842b

Please sign in to comment.