Файли
openidea/src/features/debugger/memory/InstancesPane.module.css
T
ntbang0901 a3d1e57f3e feat(debugger): memory view for a paused JVM (#2648)
Adds a Memory tab to the Debug tool window for JVM sessions: loaded classes with instance counts and shallow sizes (with deltas between refreshes), read over the HotSpot attach listener (`GC.class_histogram`), falling back to counting reachable objects through the debugger on JDKs that cannot answer while suspended. While paused, a class's instances, an instance's fields and its referrers are listed through a JDWP link (the Kotlin adapter's path, and a jdtls bundle `java/jvm-inspect` for java-debug). Debug launches started by the IDE get `-XX:+StartAttachListener` unless the user's VM options decide otherwise (not on Windows).

New crates: ide-jdwp, ide-jvm-attach, ide-jvm-inspect. The bundled jar rebuilds byte-for-byte from build.py against the pinned JDT LS plugins.

Co-authored-by: ntbang0901 <[email protected]>
2026-11-11 17:10:21 +08:00

120 рядки
2.1 KiB
CSS

.pane {
flex: 0 1 auto;
display: flex;
flex-direction: column;
/* A short Debug tool window keeps room for the class table above: the pane shrinks down to its header and a row. */
height: min(calc(var(--h-row) + 10 * var(--h-list-row)), 60%);
min-height: calc(var(--h-row) + var(--h-list-row));
border-top: 1px solid var(--border);
}
.header {
flex: none;
display: flex;
align-items: center;
gap: 4px;
height: var(--h-row);
padding: 0 4px 0 12px;
border-bottom: 1px solid var(--border);
}
.title {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--fg-strong);
font-size: var(--fs-ui);
font-family: var(--font-mono);
}
.note,
.banner,
.error {
flex: none;
display: flex;
align-items: center;
gap: 8px;
padding: 4px 12px;
font-size: var(--fs-ui);
}
.note {
color: var(--fg-subtle);
}
.banner {
color: var(--fg);
background: var(--bg-feedback-warning);
border-bottom: 1px solid var(--border-feedback-warning);
}
.error {
color: var(--fg);
background: var(--bg-feedback-error);
border-bottom: 1px solid var(--border-feedback-error);
-webkit-user-select: text;
user-select: text;
}
.retry {
flex: none;
}
.tree {
flex: 1;
min-height: 0;
}
.node,
.message {
display: flex;
align-items: center;
min-width: 0;
font-size: var(--fs-ui);
}
.name {
color: var(--fg-strong);
}
.equals {
white-space: pre;
color: var(--fg-subtle);
}
.value {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: var(--fg);
font-family: var(--font-mono);
}
.group {
color: var(--fg-muted);
}
.message {
gap: 8px;
color: var(--fg-subtle);
}
.rowButton {
flex: none;
margin-left: 8px;
opacity: 0;
}
/* Outranks `.iconButton:disabled`, which would show it on every row of an outdated list. */
.row .rowButton:disabled {
opacity: 0;
}
.row:hover .rowButton,
.row[aria-selected="true"] .rowButton,
.rowButton:focus-visible {
opacity: 1;
}
.row:hover .rowButton:disabled,
.row[aria-selected="true"] .rowButton:disabled {
opacity: 0.4;
}