forked from cory/tildefriends
Add some helpers for resizing dynamic arrays to allow them to both not grow if they're at capacity or shrink if significantly below capacity.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3902 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
@ -432,8 +432,9 @@ function receive(message) {
|
||||
rpc_in: {group: 'rpc', name: 'in'},
|
||||
rpc_out: {group: 'rpc', name: 'out'},
|
||||
|
||||
arena_percent: {group: 'memory', name: 'm'},
|
||||
js_malloc_percent: {group: 'memory', name: 'js'},
|
||||
memory_percent: {group: 'memory', name: 'total'},
|
||||
memory_percent: {group: 'memory', name: 'tot'},
|
||||
sqlite3_memory_percent: {group: 'memory', name: 'sql'},
|
||||
tf_malloc_percent: {group: 'memory', name: 'tf'},
|
||||
tls_malloc_percent: {group: 'memory', name: 'tls'},
|
||||
@ -445,7 +446,7 @@ function receive(message) {
|
||||
import_count: {group: 'functions', name: 'imports'},
|
||||
export_count: {group: 'functions', name: 'exports'},
|
||||
};
|
||||
const k_colors = ['#0f0', '#88f', '#ff0', '#f0f', '#0ff', '#f00'];
|
||||
const k_colors = ['#0f0', '#88f', '#ff0', '#f0f', '#0ff', '#f00', '#888'];
|
||||
let graph_key = k_groups[key]?.group || key;
|
||||
let graph = gGraphs[graph_key];
|
||||
if (!graph) {
|
||||
|
Reference in New Issue
Block a user