Bug 1160696 - Display MIRTypes in the JIT optimizations side pane as "Site : MIRType". (r=jsantell, a=sledru)
authorShu-yu Guo <shu@rfrn.org>
Mon, 11 May 2015 14:16:44 -0700
changeset 273292 b78b5fac8645243dc08097675a86e0b89290c84c
parent 273291 ea3d70cbe275f099dbc4e87e726c47827a6324ef
child 273293 b7ba8798ffc76799f97004bbd0fc9cfd435fffb7
push id4830
push userjlund@mozilla.com
push dateMon, 29 Jun 2015 20:18:48 +0000
treeherdermozilla-beta@4c2175bb0420 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjsantell, sledru
bugs1160696
milestone40.0a2
Bug 1160696 - Display MIRTypes in the JIT optimizations side pane as "Site : MIRType". (r=jsantell, a=sledru)
browser/devtools/performance/views/jit-optimizations.js
browser/themes/shared/devtools/performance.inc.css
--- a/browser/devtools/performance/views/jit-optimizations.js
+++ b/browser/devtools/performance/views/jit-optimizations.js
@@ -245,27 +245,18 @@ let JITOptimizationsView = {
    *
    * @see browser/devtools/shared/profiler/jit.js
    * @param {IonType} ionType
    * @return {Element}
    */
 
   _createIonNode: function (ionType) {
     let node = document.createElement("span");
-    let icon = document.createElement("span");
-    let typeNode = document.createElement("span");
-    let siteNode = document.createElement("span");
-
-    typeNode.textContent = ionType.mirType;
-    typeNode.className = "opt-ion-type";
-    siteNode.textContent = `(${ionType.site})`;
-    siteNode.className = "opt-ion-type-site";
-    node.appendChild(typeNode);
-    node.appendChild(siteNode);
-
+    node.textContent = `${ionType.site} : ${ionType.mirType}`;
+    node.className = "opt-ion-type";
     return node;
   },
 
   /**
    * Creates an element for insertion in the raw view for an ObservedType.
    *
    * @see browser/devtools/shared/profiler/jit.js
    * @param {ObservedType} type
--- a/browser/themes/shared/devtools/performance.inc.css
+++ b/browser/themes/shared/devtools/performance.inc.css
@@ -594,21 +594,16 @@
   display: block;
   overflow: hidden;
 }
 
 #jit-optimizations-raw-view .tree-widget-item[level="1"] {
   font-weight: 600;
 }
 
-#jit-optimizations-view .opt-ion-type-site {
-  -moz-margin-start: 4px !important;
-  opacity: 0.6;
-}
-
 #jit-optimizations-view .opt-outcome::before {
   content: "→";
   margin: 4px 0px;
   color: var(--theme-body-color);
 }
 #jit-optimizations-view .theme-selected .opt-outcome::before {
   color: var(--theme-selection-color);
 }