Commit c3c4830d authored by Zeynep Cankara's avatar Zeynep Cankara Committed by Commit Bot

[tools][system-analyzer] Change colors and layout

This CL changes colors of map panel
and layout of IC panel legend for organize
UI better.

Bug: v8:10673, v8:10644

Change-Id: Iead0a82fcdae09a9368d30b493565615e24dcc2e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2301932Reviewed-by: 's avatarSathya Gunasekaran  <gsathya@chromium.org>
Commit-Queue: Zeynep Cankara <zcankara@google.com>
Cr-Commit-Position: refs/heads/master@{#68911}
parent c206a8c3
...@@ -44,21 +44,27 @@ found in the LICENSE file. --> ...@@ -44,21 +44,27 @@ found in the LICENSE file. -->
#legend { #legend {
padding-right: 20px; padding-right: 20px;
} }
</style> </style>
<div class="panel"> <div class="panel">
<h2>IC Panel</h2> <h2>IC Panel</h2>
<h3>IC Explorer</h3> <h3>IC Explorer</h3>
<div id="legend"> <div id="legend">
<div style="float:right; border-style: solid; border-width: 1px; padding:20px"> <dl style="float:right; border-style: solid; border-width: 1px; padding:20px">
0 uninitialized<br> <dt>0</dt>
X no feedback<br> <dd>uninitialized</dd>
1 monomorphic<br> <dt>X</dt>
^ recompute handler<br> <dd>no feedback</dd>
P polymorphic<br> <dt>1</dt>
N megamorphic<br> <dd>monomorphic</dd>
G generic <dt>^</dt>
</div> <dd>recompute handler</dd>
<dt>P</dt>
<dd>polymorphic</dd>
<dt>N</dt>
<dd>megamorphic</dd>
<dt>G</dt>
<dd>generic</dd>
</dl>
</div> </div>
<h3>Data</h3> <h3>Data</h3>
......
...@@ -39,6 +39,18 @@ h2 { ...@@ -39,6 +39,18 @@ h2 {
text-decoration: none; text-decoration: none;
display: inline-block; display: inline-block;
} }
dl {
display: grid;
grid-template-columns: min-content auto;
grid-gap: 10px;
}
dt {
text-align: right;
white-space: nowrap;
}
dd {
margin: 0;
}
.panel { .panel {
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
transition: 0.3s; transition: 0.3s;
......
...@@ -40,18 +40,6 @@ found in the LICENSE file. --> ...@@ -40,18 +40,6 @@ found in the LICENSE file. -->
padding: 0px 4px 2px 4px; padding: 0px 4px 2px 4px;
white-space: nowrap; white-space: nowrap;
} }
dl {
display: grid;
grid-template-columns: min-content auto;
grid-gap: 10px;
}
dt {
text-align: right;
white-space: nowrap;
}
dd {
margin: 0;
}
</style> </style>
<script type="module" > <script type="module" >
import {App} from './index.mjs'; import {App} from './index.mjs';
......
...@@ -94,14 +94,14 @@ found in the LICENSE file. --> ...@@ -94,14 +94,14 @@ found in the LICENSE file. -->
} }
.transitionLabel { .transitionLabel {
color: var(--map-background-color); color: var(--on-surface-color);
transform: rotate(-15deg); transform: rotate(-15deg);
transform-origin: top left; transform-origin: top left;
margin-top: -10px; margin-top: -10px;
font-size: 10px; font-size: 10px;
white-space: normal; white-space: normal;
word-break: break-all; word-break: break-all;
background-color: var(--on-surface-color); background-color: var(--surface-color);
} }
.showSubtransitions { .showSubtransitions {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment