дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-03 16:51:16 +02:00
Capture a heap dump of the debugged JVM over the attach listener (GC.heap_dump, after checking free disk space and the JDK's rules for suspended VMs) or open an .hprof file, and browse it in an editor tab: classes with shallow and retained sizes, biggest objects, dominators, the path from an object to a GC root, and a comparison of two snapshots. A snapshot captured at a stop adds a Retained Size column to that stop's Memory tab. New crate ide-heap: HotSpot hprof parser (bounds-checked; unfinished or crafted dumps are refused), object graph, dominator tree (semi-NCA), retained sizes and GC-root paths. Snapshots live in private directories removed with their window; an opened dump is analyzed from a private copy so changes to the user's file can't affect the mapped data. Co-authored-by: ntbang0901 <[email protected]>
236 рядки
4.1 KiB
CSS
236 рядки
4.1 KiB
CSS
.root {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
/* Shorter than the class table and the instances pane at their smallest: scroll rather than overlap. */
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.toolbar {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 4px 8px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
|
|
.filter {
|
|
flex: 0 1 240px;
|
|
min-width: 80px;
|
|
}
|
|
|
|
.banner,
|
|
.error {
|
|
flex: none;
|
|
padding: 4px 12px;
|
|
font-size: var(--fs-ui);
|
|
color: var(--fg);
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.banner {
|
|
background: var(--bg-feedback-warning);
|
|
border-bottom-color: var(--border-feedback-warning);
|
|
}
|
|
.error {
|
|
background: var(--bg-feedback-error);
|
|
border-bottom-color: var(--border-feedback-error);
|
|
-webkit-user-select: text;
|
|
user-select: text;
|
|
}
|
|
|
|
.note {
|
|
padding: 8px 12px;
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-ui);
|
|
}
|
|
|
|
/* A row above the table: the table and the instances pane below it share what is left. */
|
|
.capture {
|
|
flex: none;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding-block: 4px;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
.captureBar {
|
|
flex: 0 1 160px;
|
|
}
|
|
|
|
.table {
|
|
flex: 1;
|
|
/* Its header, three rows and the footer; the instances pane below gives way first. */
|
|
min-height: calc(2 * var(--h-row) + 3 * 22px);
|
|
/* Squeezed by the instances pane, it must not paint over it. */
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
--memory-columns: minmax(0, 1fr) 96px 72px 104px;
|
|
}
|
|
.noSizes {
|
|
--memory-columns: minmax(0, 1fr) 96px 72px;
|
|
}
|
|
.withRetained {
|
|
--memory-columns: minmax(0, 1fr) 96px 72px 104px 104px;
|
|
}
|
|
.noSizes.withRetained {
|
|
--memory-columns: minmax(0, 1fr) 96px 72px 104px;
|
|
}
|
|
|
|
.head,
|
|
.row {
|
|
display: grid;
|
|
grid-template-columns: var(--memory-columns);
|
|
align-items: center;
|
|
column-gap: 12px;
|
|
width: 100%;
|
|
}
|
|
|
|
.head {
|
|
flex: none;
|
|
height: var(--h-row);
|
|
padding: 0 16px 0 14px;
|
|
border-bottom: 1px solid var(--border);
|
|
color: var(--fg-muted);
|
|
font-size: var(--fs-small);
|
|
}
|
|
|
|
.headCell {
|
|
display: flex;
|
|
min-width: 0;
|
|
}
|
|
.headCell button {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
height: 100%;
|
|
padding: 0;
|
|
color: inherit;
|
|
font: inherit;
|
|
white-space: nowrap;
|
|
text-align: left;
|
|
}
|
|
.headCell button:hover {
|
|
color: var(--fg-strong);
|
|
}
|
|
.headCell button:focus-visible {
|
|
outline: 2px solid var(--focus-ring);
|
|
outline-offset: -2px;
|
|
}
|
|
.numeric button {
|
|
justify-content: flex-end;
|
|
text-align: right;
|
|
}
|
|
.sorted button {
|
|
color: var(--fg-strong);
|
|
}
|
|
|
|
.grid {
|
|
flex: 1;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.headGroup {
|
|
flex: none;
|
|
}
|
|
|
|
.list {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.row {
|
|
font-size: var(--fs-ui);
|
|
color: var(--fg);
|
|
}
|
|
|
|
.cell {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.className {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
.classText {
|
|
flex: 0 1 auto;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--fg-strong);
|
|
}
|
|
|
|
.module {
|
|
flex: 1 100 auto;
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--fg-subtle);
|
|
font-size: var(--fs-small);
|
|
}
|
|
|
|
.ambiguous {
|
|
flex: none;
|
|
align-self: center;
|
|
color: var(--warning);
|
|
}
|
|
|
|
.rowButton {
|
|
flex: none;
|
|
align-self: center;
|
|
margin-left: auto;
|
|
opacity: 0;
|
|
}
|
|
/* Outranks `.iconButton:disabled`, which would show it on every row while the program runs. */
|
|
.row .rowButton:disabled {
|
|
opacity: 0;
|
|
}
|
|
.row:hover .rowButton,
|
|
:global([data-lead]) > .row .rowButton,
|
|
.rowButton:focus-visible {
|
|
opacity: 1;
|
|
}
|
|
.row:hover .rowButton:disabled,
|
|
:global([data-lead]) > .row .rowButton:disabled {
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.num {
|
|
text-align: right;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.zero {
|
|
color: var(--fg-subtle);
|
|
}
|
|
|
|
.footer {
|
|
flex: none;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
column-gap: 12px;
|
|
padding: 4px 12px;
|
|
border-top: 1px solid var(--border);
|
|
color: var(--fg-muted);
|
|
font-size: var(--fs-small);
|
|
}
|
|
|
|
.source {
|
|
color: var(--fg-subtle);
|
|
}
|