Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: runtime/observatory/lib/src/elements/css/shared.css

Issue 2255613002: Converted Observatory heap-profile element (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Optimizations & Dead code removal Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/observatory/lib/src/elements/css/shared.css
diff --git a/runtime/observatory/lib/src/elements/css/shared.css b/runtime/observatory/lib/src/elements/css/shared.css
index a72de8bace979f7a5c345497f4e94aebd1b9c168..740d26b6173fc63292e55250e8303ac5c2c99088 100644
--- a/runtime/observatory/lib/src/elements/css/shared.css
+++ b/runtime/observatory/lib/src/elements/css/shared.css
@@ -370,6 +370,150 @@ select, button, input {
-webkit-animation: shake 0.5s;
}
+/* allocation-profile */
+
+allocation-profile .heap-space {
+ display: inline-block;
+ width: 50%;
+}
+
+allocation-profile .heap-space.right,
+allocation-profile .heap-space.right .memberList,
+allocation-profile .heap-space.right .legend * {
+ direction: rtl;
+}
+
+allocation-profile .heap-space.right * {
+ direction: ltr;
+ text-align: right;
+}
+
+allocation-profile div.chart {
+ display: block;
+ position: relative;
+ height: 150px;
+}
+allocation-profile div.chart > div.host {
+ display: inline-block;
+ position: absolute;
+ bottom: 0px;
+ top: 0;
+}
+allocation-profile div.chart > div.legend {
+ position: absolute;
+ width: 150px;
+ top: 25px;
+ bottom: 0;
+ overflow-y: auto;
+}
+allocation-profile .heap-space.left div.host {
+ left: 200px;
+ width: 180px;
+}
+allocation-profile .heap-space.right div.host {
+ right: 150px;
+ width: 180px;
+}
+allocation-profile .heap-space.left div.legend {
+ left: 0;
+}
+allocation-profile .heap-space.right div.legend {
+ right: 0;
+}
+
+allocation-profile .collection {
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ top: 560px;
+}
+
+allocation-profile .collection-item {
+ box-sizing: border-box;
+ line-height: 20px;
+ margin-left: 5%;
+ margin-right: 5%;
+}
+
+allocation-profile .header .collection-item:last-child {
+ margin-bottom: -3px;
+ border-bottom: solid 1px #AAAAAA;
+}
+
+allocation-profile .header .collection-item span {
+ font-weight: bolder;
+}
+
+allocation-profile .collection-item :nth-child(2n+2).group,
+allocation-profile .collection-item :nth-child(4n+3).bytes,
+allocation-profile .collection-item :nth-child(4n+3).instances,
+allocation-profile .collection-item :nth-child(4n+4).bytes,
+allocation-profile .collection-item :nth-child(4n+4).instances {
+ background-color: #EEEEEE;
+}
+
+allocation-profile .collection-item:hover :nth-child(2n+2).group,
+allocation-profile .collection-item:hover :nth-child(4n+3).bytes,
+allocation-profile .collection-item:hover :nth-child(4n+3).instances,
+allocation-profile .collection-item:hover :nth-child(4n+4).bytes,
+allocation-profile .collection-item:hover :nth-child(4n+4).instances {
+ background-color: #afd5fd;
+}
+
+allocation-profile .header .collection-item :nth-child(2n+2).group,
+allocation-profile .header .collection-item :nth-child(4n+3).bytes,
+allocation-profile .header .collection-item :nth-child(4n+3).instances,
+allocation-profile .header .collection-item :nth-child(4n+4).bytes,
+allocation-profile .header .collection-item :nth-child(4n+4).instances {
+ background-color: #DDDDDD;
+}
+
+allocation-profile .scroller .collection-item:hover {
+ background-color: #d2e7fe;
+}
+
+allocation-profile .collection-item .group {
+ display: inline-block;
+ width: 12em;
+ text-align: right;
+ padding-right: 0.5em;
+ line-height: 20px;
+ border-right: solid 1px #AAAAAA;
+}
+
+allocation-profile .collection-item .bytes {
+ display: inline-block;
+ width: 6em;
+ text-align: right;
+ line-height: 20px;
+ padding-right: 0.5em;
+}
+
+allocation-profile .collection-item .instances {
+ display: inline-block;
+ width: 6em;
+ text-align: right;
+ padding-right: 0.5em;
+ line-height: 20px;
+ border-right: solid 1px #AAAAAA;
+}
+
+allocation-profile .collection-item .name {
+ padding-left: 0.5em;
+}
+
+allocation-profile .collection-item > button,
+allocation-profile .collection-item > button:active {
+ background-color: transparent;
+ color: #0489c3;
+ border-style: none;
+}
+
+allocation-profile .collection-item > button:hover {
+ text-decoration: underline;
+}
+
/* class-ref */
/* TODO(cbernaschina) fix class-ref-wrapped to class-ref when wrapper
removed */
@@ -604,6 +748,16 @@ library-ref-wrapped > a[href] {
text-decoration: none;
}
+.nav-option {
+ float: right;
+ margin: 3px;
+ padding: 8px;
+}
+
+.nav-option label {
+ color: white;
+}
+
/* nav-notify */
/* TODO(cbernaschina) fix nav-notify-wrapped to nav-notify when wrapper
removed */
@@ -812,12 +966,21 @@ view-footer > a {
/* virtual-collection */
virtual-collection {
+ position: relative;
display: block;
- overflow-y: scroll;
+ overflow-y: auto;
width: 100%;
height: 100%;
}
+virtual-collection .header {
+ background: white;
+ position: relative;
+ display: inline-block;
+ min-width: 100%;
+ z-index: +1;
+}
+
virtual-collection .scroller {
overflow: hidden;
background: transparent;
@@ -832,6 +995,7 @@ virtual-collection .shifter {
min-width: 100%;
}
+virtual-collection .header > *,
virtual-collection .shifter > * {
display: inline-block;
min-width: 100%;

Powered by Google App Engine
This is Rietveld 408576698