Closed
Bug 308762
Opened 20 years ago
Closed 7 years ago
jsshell Enable gc("filename", true) to return the gc results as a string
Categories
(Core :: JavaScript Engine, enhancement)
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: timeless, Unassigned)
Details
Attachments
(1 obsolete file)
we're about to start some gc investigations and one of the things we'd like to
be able to do is have js code that tests things and automatically decides what
is happening wrt objects. i'm aware that this results in a bit of jitter (if
you get strings), and we can deal with that. it does not alter the normal
behavior of gc() or gc("logfilename").
proposed inputs:
false, odd => don't print
true, even (including void) => print
void, 0 => return void - current behavior
true, false, 1, 2 => return bool (true if something was gc'd, false otherwise)
3, 4 => return how much the gc recovered
otherwise => return the string that would be printed
Attachment #196280 -
Flags: review?(brendan)
Attachment #196280 -
Flags: review?(mrbkap)
Comment 2•18 years ago
|
||
Comment on attachment 196280 [details] [diff] [review]
enhance gc() to take a second argument that controls the return value and whether to print to stdout
Old request, redirecting, may need dialog about design first.
/be
Attachment #196280 -
Flags: review?(brendan) → review?(igor)
Comment 3•18 years ago
|
||
timeless:
is it still useful to have this gc() extension with exactly the modes proposed given that now days jsshell provides countHeap:
js> help("countHeap")
help("countHeap")
JavaScript-C 1.7 pre-release 3 2007-04-01
Command Description
======= ===========
countHeap([start[, kind]])
Count the number of live GC things in the heap or things reachable from
start when it is given and is not null. kind is either 'all' (default) to
count all things or one of 'object', 'double', 'string', 'function',
'qname', 'namespace', 'xml' to count only things of that kind
If the modes are not essential, I would prefer to have a simple flag to return the current gc() output as an object with some properties.
Comment 4•18 years ago
|
||
Comment on attachment 196280 [details] [diff] [review]
enhance gc() to take a second argument that controls the return value and whether to print to stdout
The patch requires an update.
Attachment #196280 -
Attachment is obsolete: true
Attachment #196280 -
Flags: review?(mrbkap)
Attachment #196280 -
Flags: review?(igor)
| Assignee | ||
Updated•11 years ago
|
Assignee: general → nobody
Comment 5•7 years ago
|
||
Closing stale bug as INCOMPLETE.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•