Skip to content

Commit

Permalink
Fixed performance issues more
Browse files Browse the repository at this point in the history
  • Loading branch information
sarutak committed May 14, 2015
1 parent 64e6642 commit d5f794a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,7 @@ function drawTaskAssignmentTimeline(groupArray, eventObjArray, minLaunchTime, zo
taskTimeline.setOptions(options);
taskTimeline.setGroups(groups);
taskTimeline.setItems(items);
var curEnd = taskTimeline.getWindow()["end"].getTime();
if (curEnd - minLaunchTime > zoomMax) {
curEnd = minLaunchTime + zoomMax;
}
taskTimeline.setWindow(minLaunchTime, curEnd);

taskTimeline.on("rangechange", function(prop) {
if (currentDisplayedTooltip !== null) {
$(currentDisplayedTooltip).tooltip("hide");
Expand Down
15 changes: 1 addition & 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 @@ -646,20 +646,7 @@ private[ui] class StagePage(parent: StagesTab) extends WebUIPage("stage") {
"""
}.mkString("[", ",", "]")

var maxWindowInSec = ((maxFinishTime - minLaunchTime) / 1000.0).round
if (maxWindowInSec <= 0) maxWindowInSec = 1
val tasksPerSecond = numEffectiveTasks / maxWindowInSec
var maxZoom = {
if (tasksPerSecond > 100) {
1000L / (tasksPerSecond / 100)
}
else {
1000 * (100 / tasksPerSecond)
}
}

if (maxZoom < 0) maxZoom = 1

val maxZoom = maxFinishTime - minLaunchTime
<span class="expand-task-assignment-timeline">
<span class="expand-task-assignment-timeline-arrow arrow-closed"></span>
<a>Event Timeline {
Expand Down

0 comments on commit d5f794a

Please sign in to comment.