MCPcopy Index your code
hub / github.com/codechenx/FastTableViewer / setMemoryLimit

Method setMemoryLimit

buffer.go:183–187  ·  view source on GitHub ↗

setMemoryLimit sets the maximum memory limit in bytes (0 = no limit)

(bytes int64)

Source from the content-addressed store, hash-verified

181
182// setMemoryLimit sets the maximum memory limit in bytes (0 = no limit)
183func (b *Buffer) setMemoryLimit(bytes int64) {
184 b.mu.Lock()
185 defer b.mu.Unlock()
186 b.maxMemory = bytes
187}
188
189// getMemoryStats returns memory usage statistics
190func (b *Buffer) getMemoryStats() map[string]interface{} {

Callers 8

mainFunction · 0.80
TestMemoryLimit_BasicFunction · 0.80
TestMemoryLimit_StatsFunction · 0.80
BenchmarkMemoryTrackingFunction · 0.80

Calls

no outgoing calls

Tested by 7

TestMemoryLimit_BasicFunction · 0.64
TestMemoryLimit_StatsFunction · 0.64
BenchmarkMemoryTrackingFunction · 0.64