Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/context-labs/mactop
/ functions
Functions
92 in github.com/context-labs/mactop
⨍
Functions
92
◇
Types & classes
22
↓ 9 callers
Function
updateProcessList
()
internal/app/app.go:357
↓ 8 callers
Function
formatBytes
(val float64, unitType string)
internal/app/app.go:1475
↓ 7 callers
Function
getThermalStateString
()
internal/app/app.go:923
↓ 5 callers
Method
Notify
()
internal/app/types.go:101
↓ 5 callers
Function
updateHelpText
()
internal/app/app.go:195
↓ 4 callers
Function
formatTemp
(celsius float64)
internal/app/app.go:1517
↓ 4 callers
Function
sampleSocMetrics
(durationMs int)
internal/app/ioreport.go:87
↓ 3 callers
Function
GetCPUPercentages
()
internal/app/app.go:62
↓ 3 callers
Function
applyLayout
(layoutName string)
internal/app/layout.go:37
↓ 3 callers
Function
applyTheme
(colorName string, lightMode bool)
internal/app/theme.go:25
↓ 3 callers
Function
cleanHex
(s string)
internal/app/detection.go:112
↓ 3 callers
Function
cleanupSocMetrics
()
internal/app/ioreport.go:105
↓ 3 callers
Function
cycleTheme
()
internal/app/theme.go:176
↓ 3 callers
Function
getNetDiskMetrics
()
internal/app/app.go:934
↓ 3 callers
Function
getSOCInfo
()
internal/app/app.go:1371
↓ 3 callers
Function
initSocMetrics
()
internal/app/ioreport.go:80
↓ 3 callers
Function
max
(nums ...int)
internal/app/app.go:1361
↓ 3 callers
Function
parseTimeString
(timeStr string)
internal/app/app.go:289
↓ 3 callers
Function
renderUI
()
internal/app/app.go:567
↓ 3 callers
Function
saveConfig
()
internal/app/config.go:36
↓ 3 callers
Function
updateModelText
()
internal/app/app.go:171
↓ 2 callers
Function
GetProcessTextColor
(isCurrentUser bool)
internal/app/theme.go:158
↓ 2 callers
Function
GetThemeColorWithLightMode
(colorName string, lightMode bool)
internal/app/theme.go:150
↓ 2 callers
Function
NewCPUCoreWidget
(modelInfo SystemInfo)
internal/app/types.go:115
↓ 2 callers
Function
fixColor
(c tcell.Color)
internal/termbox_shim/compat.go:91
↓ 2 callers
Function
formatTime
(seconds float64)
internal/app/app.go:302
↓ 2 callers
Function
getMemoryMetrics
()
internal/app/app.go:1397
↓ 2 callers
Function
getProcessList
()
internal/app/processes.go:72
↓ 2 callers
Function
handleProcessListEvents
(e ui.Event)
internal/app/app.go:510
↓ 2 callers
Function
mkStyle
(fg, bg Attribute)
internal/termbox_shim/compat.go:110
↓ 2 callers
Function
truncateWithEllipsis
(s string, maxLen int)
internal/app/app.go:347
↓ 1 callers
Function
GetCPUUsage
()
internal/app/processes.go:229
↓ 1 callers
Function
GetThemeColor
(colorName string)
internal/app/theme.go:142
↓ 1 callers
Function
NewCPUMetrics
()
internal/app/types.go:93
↓ 1 callers
Function
NewEventThrottler
(gracePeriod time.Duration)
internal/app/types.go:85
↓ 1 callers
Function
Run
()
internal/app/app.go:573
↓ 1 callers
Function
SetCursor
SetCursor displays the terminal cursor at the given location.
internal/termbox_shim/compat.go:53
↓ 1 callers
Function
StderrToLogfile
(logfile *os.File)
internal/app/app.go:285
↓ 1 callers
Method
UpdateUsage
(usage []float64)
internal/app/types.go:139
↓ 1 callers
Function
checkCOLORFGBG
()
internal/app/detection.go:124
↓ 1 callers
Function
checkSystemTheme
()
internal/app/detection.go:148
↓ 1 callers
Function
checkTerminalColorOSC11
()
internal/app/detection.go:31
↓ 1 callers
Function
collectMetrics
(done chan struct{}, cpumetricsChan chan CPUMetrics, gpumetricsChan chan GPUMetrics)
internal/app/app.go:1015
↓ 1 callers
Function
collectNetDiskMetrics
(done chan struct{}, netdiskMetricsChan chan NetDiskMetrics)
internal/app/app.go:987
↓ 1 callers
Function
collectProcessMetrics
(done chan struct{}, processMetricsChan chan []ProcessMetrics)
internal/app/app.go:1081
↓ 1 callers
Function
cycleLayout
()
internal/app/layout.go:23
↓ 1 callers
Function
detectLightMode
()
internal/app/detection.go:15
↓ 1 callers
Function
formatMemorySize
(kb int64)
internal/app/app.go:314
↓ 1 callers
Function
formatResMemorySize
(kb int64)
internal/app/app.go:332
↓ 1 callers
Function
getCPUInfo
()
internal/app/app.go:1414
↓ 1 callers
Function
getCoreCounts
()
internal/app/app.go:1434
↓ 1 callers
Function
getGPUCores
()
internal/app/app.go:1456
↓ 1 callers
Function
getSocThermalState
()
internal/app/ioreport.go:109
↓ 1 callers
Function
getUsername
(uid uint32)
internal/app/processes.go:29
↓ 1 callers
Function
getVolumes
()
internal/app/app.go:1276
↓ 1 callers
Function
loadConfig
()
internal/app/config.go:16
↓ 1 callers
Function
makeEvent
(tev tcell.Event)
internal/termbox_shim/compat.go:335
↓ 1 callers
Function
parseOSC11Response
(resp string)
internal/app/detection.go:83
↓ 1 callers
Function
runHeadless
(count int)
internal/app/headless.go:13
↓ 1 callers
Function
setupGrid
()
internal/app/layout.go:19
↓ 1 callers
Function
setupLogfile
()
internal/app/app.go:904
↓ 1 callers
Function
setupUI
()
internal/app/app.go:96
↓ 1 callers
Function
startPrometheusServer
(port string)
internal/app/app.go:35
↓ 1 callers
Function
toggleHelpMenu
()
internal/app/app.go:237
↓ 1 callers
Function
togglePartyMode
()
internal/app/app.go:263
↓ 1 callers
Function
updateCPUUI
(cpuMetrics CPUMetrics)
internal/app/app.go:1138
↓ 1 callers
Function
updateGPUUI
(gpuMetrics GPUMetrics)
internal/app/app.go:1230
↓ 1 callers
Function
updateNetDiskUI
(netdiskMetrics NetDiskMetrics)
internal/app/app.go:1325
↓ 1 callers
Function
updateTotalPowerChart
(watts float64)
internal/app/app.go:1106
Function
Clear
Clear clears the screen with the given attributes.
internal/termbox_shim/compat.go:150
Function
Close
Close cleans up the terminal, restoring terminal modes, etc.
internal/termbox_shim/compat.go:42
Method
Draw
(buf *ui.Buffer)
internal/app/types.go:144
Function
Flush
Flush updates the screen.
internal/termbox_shim/compat.go:47
Function
HideCursor
HideCursor hides the terminal cursor.
internal/termbox_shim/compat.go:58
Function
Init
Init initializes the screen for use.
internal/termbox_shim/compat.go:29
Function
Interrupt
Interrupt posts an interrupt event.
internal/termbox_shim/compat.go:415
Function
ParseEvent
ParseEvent is not supported.
internal/termbox_shim/compat.go:397
Function
PollEvent
PollEvent blocks until an event is ready, and then returns it.
internal/termbox_shim/compat.go:409
Function
PollRawEvent
PollRawEvent is not supported.
internal/termbox_shim/compat.go:403
Function
SetCell
SetCell sets the character cell at a given location to the given content (rune) and attributes.
internal/termbox_shim/compat.go:210
Function
SetInputMode
SetInputMode is used to set the input mode.
internal/termbox_shim/compat.go:172
Function
SetOutputMode
SetOutputMode is used to set the color palette used.
internal/termbox_shim/compat.go:195
Function
Size
Size returns the screen size as width, height in character cells.
internal/termbox_shim/compat.go:63
Function
Sync
Sync forces a resync of the screen.
internal/termbox_shim/compat.go:203
Function
TestEventThrottler
(t *testing.T)
internal/app/app_test.go:117
Function
TestFormatBytes
(t *testing.T)
internal/app/app_test.go:8
Function
TestFormatTemp
(t *testing.T)
internal/app/app_test.go:33
Function
TestMax
(t *testing.T)
internal/app/app_test.go:60
Function
TestNewCPUCoreWidget
(t *testing.T)
internal/app/app_test.go:94
Function
TestNewCPUMetrics
(t *testing.T)
internal/app/app_test.go:81
Function
getTimebase
()
internal/app/processes.go:68
Function
main
()
main.go:7