дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 01:01:17 +02:00
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]>
120 рядки
2.1 KiB
CSS
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;
|
|
}
|