Changeset 173008 in webkit


Ignore:
Timestamp:
Aug 27, 2014, 10:12:45 AM (11 years ago)
Author:
ap@apple.com
Message:

build.webkit.org/dashboard: Add a metrics page with overall bot performance results
https://bugs.webkit.org/show_bug.cgi?id=136196

Reviewed by Timothy Hatcher.

  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External: Added.
  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/daterangepicker.css: Added.
  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery-1.11.1.min.js: Added.
  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery.daterangepicker.js: Added.
  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/moment.min.js: Added.

A date range picker control with dependencies.
There are a few modifications from upstream at <https://github.com/longbill/jquery-date-range-picker>:

  • Fixed a bug where selected dates were not at midnight the first time a range was chosen

(it didn't happen again upon re-opening the picker).

  • Made made style tweaks to match Dashboard UI.
  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Initialization.js:

Don't create objects that are not needed by the given app, and thus are not loaded at all.

  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsAnalyzer.js: Added.

Math to count all the things. Only supports open source tree and trunk at the moment,
but written with internal tree and branches in mind.

  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsMain.js: Added.

Like dashboard Main.js, draws the UI and creates all necessary objects.

  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsView.js: Added.

A view for table cells.

  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Settings.js:

(Settings.prototype.toggleSettingsDisplay): Added an event for entering settings.
Metrics page has individual platforms initially scrolled away form the view, so
it needs to scroll down to reveal what's being configured.

  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Utilities.js:

Added Array.prototype.average and Array.prototype.median.

  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:

Made gear icon fixed instead of absolute, so that it's visible on metrics page when
in settings mode.

  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Metrics.css:

Additional style rules.

  • BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/metrics.html:

The metrics page.

Location:
trunk/Tools
Files:
10 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Initialization.js

    r162847 r173008  
    2727var buildbots = [ new WebKitBuildbot ];
    2828var webkitTrac = new Trac("http://trac.webkit.org/");
    29 var bugzilla = new Bugzilla;
    30 var ews = new EWS;
    31 var testHistory = new TestHistory;
     29if (typeof Bugzilla !== "undefined")
     30    var bugzilla = new Bugzilla;
     31if (typeof EWS !== "undefined")
     32    var ews = new EWS;
     33if (typeof TestHistory !== "undefined")
     34    var testHistory = new TestHistory;
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Settings.js

    r161360 r173008  
    8080    toggleSettingsDisplay: function()
    8181    {
     82        if (!document.body.classList.contains("settings-visible"))
     83            this.fireSettingListener("enteredSettings");
    8284        document.body.classList.toggle("settings-visible");
    8385    },
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Utilities.js

    r172941 r173008  
    167167};
    168168
     169Array.prototype.average = function()
     170{
     171    var sum = 0;
     172    var count = this.length;
     173    for (var i = 0; i < count; ++i)
     174        sum += this[i];
     175    return sum / count;
     176};
     177
     178Array.prototype.median = function()
     179{
     180    var array = this.slice(); // Make a copy to avoid modifying the object.
     181    array.sort(function(a, b) { return a - b; });
     182
     183    var half = Math.floor(array.length / 2);
     184
     185    if (array.length % 2)
     186        return array[half];
     187    else
     188        return (array[half - 1] + array[half]) / 2;
     189};
     190
    169191String.prototype.contains = function(substring)
    170192{
  • trunk/Tools/BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css

    r161261 r173008  
    7070
    7171.settings {
    72     position: absolute;
     72    position: fixed;
    7373    top: 5px;
    7474    left: 5px;
  • trunk/Tools/ChangeLog

    r173001 r173008  
     12014-08-27  Alexey Proskuryakov  <ap@apple.com>
     2
     3        build.webkit.org/dashboard: Add a metrics page with overall bot performance results
     4        https://bugs.webkit.org/show_bug.cgi?id=136196
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External: Added.
     9        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/daterangepicker.css: Added.
     10        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery-1.11.1.min.js: Added.
     11        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/jquery.daterangepicker.js: Added.
     12        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/External/moment.min.js: Added.
     13        A date range picker control with dependencies.
     14        There are a few modifications from upstream at <https://github.com/longbill/jquery-date-range-picker>:
     15        - Fixed a bug where selected dates were not at midnight the first time a range was chosen
     16        (it didn't happen again upon re-opening the picker).
     17        - Made made style tweaks to match Dashboard UI.
     18
     19        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Initialization.js:
     20        Don't create objects that are not needed by the given app, and thus are not loaded at all.
     21
     22        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsAnalyzer.js: Added.
     23        Math to count all the things. Only supports open source tree and trunk at the moment,
     24        but written with internal tree and branches in mind.
     25
     26        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsMain.js: Added.
     27        Like dashboard Main.js, draws the UI and creates all necessary objects.
     28
     29        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/MetricsView.js: Added.
     30        A view for table cells.
     31
     32        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Settings.js:
     33        (Settings.prototype.toggleSettingsDisplay): Added an event for entering settings.
     34        Metrics page has individual platforms initially scrolled away form the view, so
     35        it needs to scroll down to reveal what's being configured.
     36
     37        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Utilities.js:
     38        Added Array.prototype.average and Array.prototype.median.
     39
     40        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Main.css:
     41        Made gear icon fixed instead of absolute, so that it's visible on metrics page when
     42        in settings mode.
     43
     44        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Styles/Metrics.css:
     45        Additional style rules.
     46
     47        * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/metrics.html:
     48        The metrics page.
     49
    1502014-08-27  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
    251
Note: See TracChangeset for help on using the changeset viewer.