Name

Profiler

Synopsis

JavaScript: Profiler
Type: Object
Access: private
Build Flags: profile
Topic: LZX.Profiler
Declared in: WEB-INF/lps/lfc/profiler/LzProfile.lzs

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();
Profile event 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);
Write a close tag
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);
Write a record element
empty()
static private function empty(type : String, attributes : String);
Write an empty element
entry()
static private function entry(key, time, func);
Write a log entry
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();
Flush the write buffer
info()
static private function info(str : String);
Write an info record
initialize()
static public function initialize(host);
openTag()
static private function openTag(tag : String);
Write an open tag
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();
Start a new profile run
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);
Write data to buffer

JavaScript Synopsis

private var Profiler = { ... };