Files
stratopause-lscandClaude Opus 4.8 5f5adfea73 Initial release: ComfyUI Mac Memory Monitor
Real-time memory monitor for ComfyUI on Apple Silicon (MPS / unified memory):
floating panel (Unified RAM, MPS driver/active, MLX Metal, Swap, CPU, process
RSS, loaded models) with per-run peak markers, plus a Mac Memory Probe graph
node for inline snapshots. MLX memory is read only from the execution thread
for thread-safety. Includes an mflux AnyModel example workflow.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 15:52:50 +08:00

102 lines
2.6 KiB
CSS

.macmem-panel {
position: fixed;
z-index: 2147483000;
width: 260px;
background: rgba(24, 24, 28, 0.92);
color: #e8e8ea;
font-family: -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
font-size: 11px;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 8px;
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
backdrop-filter: blur(8px);
user-select: none;
overflow: hidden;
}
.macmem-header {
display: flex;
align-items: center;
gap: 4px;
padding: 6px 8px;
cursor: move;
background: rgba(255, 255, 255, 0.05);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.macmem-title { font-weight: 600; letter-spacing: 0.2px; }
.macmem-title.macmem-running { color: #6ee7a8; }
.macmem-btn {
background: transparent;
border: none;
color: #b8b8bc;
cursor: pointer;
font-size: 12px;
line-height: 1;
padding: 2px 5px;
border-radius: 4px;
}
.macmem-btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.macmem-body { padding: 8px; display: flex; flex-direction: column; gap: 7px; }
.macmem-collapsed .macmem-body { display: none; }
.macmem-bar-wrap { display: flex; flex-direction: column; gap: 3px; }
.macmem-bar-head { display: flex; justify-content: space-between; align-items: baseline; }
.macmem-bar-name { color: #c8c8cc; }
.macmem-bar-val { color: #9a9aa0; font-variant-numeric: tabular-nums; font-size: 10px; }
.macmem-bar-track {
position: relative;
height: 8px;
background: rgba(255, 255, 255, 0.08);
border-radius: 4px;
overflow: hidden;
}
.macmem-bar-fill {
position: absolute;
left: 0; top: 0; bottom: 0;
width: 0%;
background: linear-gradient(90deg, #4f9dff, #7fd8e8);
border-radius: 4px;
transition: width 0.25s ease;
}
.macmem-bar-fill.macmem-warn {
background: linear-gradient(90deg, #ff9d4f, #ff6a3d);
}
.macmem-bar-peak {
position: absolute;
top: -1px; bottom: -1px;
width: 2px;
background: #f7e04b;
display: none;
}
.macmem-meta {
color: #9a9aa0;
font-size: 10px;
padding-top: 2px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.macmem-models { display: flex; flex-direction: column; gap: 2px; }
.macmem-models-title, .macmem-models-empty {
color: #8a8a90;
font-size: 10px;
margin-top: 2px;
}
.macmem-model-row {
display: flex;
justify-content: space-between;
gap: 6px;
font-size: 10px;
}
.macmem-model-name {
color: #d4d4d8;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.macmem-model-size { color: #9a9aa0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.macmem-dev { color: #7fd8e8; }