Description
Profiler
Used to accumulate profiling statistics and send them to the
profile servlet on the LPS host this app was served from
Code compiled with `pragma 'profile=true'` will record
function call and return information. By default all code will
have profiling enabled when compiled with `?profile=true`
Profiling can be controlled dynamically by the program being
profiled using the `stop`, `start`, `pause`, and `resume` methods.
User events can be inserted into the profile log using the `event`
method.
Details
Static Properties (2)
-
seqnum
-
static public var seqnum = 0.0;
-
version
-
static public var version = 4;
Static Methods (21)
-
Buffers()
-
static private function Buffers();
-
close()
-
static private function close();
Close the connection
Stops profiling, writes the end tag, flushes the data
NOTE: use `stop` to stop cleanly and ensure all data has been
dumped.
-
closeTag()
-
static private function closeTag(tag : String);
-
connect()
-
static private function connect();
Called to open a socket to the profile listener.
-
dump()
-
static private function dump(ignoreme, loops : Number, ms : Number);
Called to dump the accumulated profile information.
-
element()
-
static private function element(type : String, str : String);
-
empty()
-
static private function empty(type : String, attributes : String);
-
entry()
-
static private function entry(key, time, func);
-
event()
-
static public function event(description : String, buffer);
Insert an event into the profiler log
Logs a descriptive string with a timestamp to the profiler event
buffers. These events will be dumped to the log with the key 'V'.
-
flashOnLoadHandler()
-
static public function flashOnLoadHandler(src);
-
flush()
-
static private function flush();
-
info()
-
static private function info(str : String);
-
initialize()
-
static public function initialize(host);
-
openTag()
-
static private function openTag(tag : String);
-
pause()
-
static public function pause();
Pause the current profile run
-
processSocketChange()
-
static public function processSocketChange();
-
resume()
-
static public function resume();
Resume the current profile run
-
start()
-
static public function start();
-
startBackground()
-
static public function startBackground();
Start the profiler background process
(has to wait for events and idle loop to be set up)
-
stop()
-
static public function stop();
Stop the current profile run and ensure it is written out
-
write()
-
static private function write(str : String);
JavaScript Synopsis
private var Profiler = { ... };