Module supple.track
Communications tracking for Supple sandboxes.
This module provides a mechanism for keeping track of what goes on in the communications path of a sandboxed runtime. The track is held from the point of view of whichever side caused it to be recorded (typically the host). Tracks are best generated by ensuring tracking is enabled and then calling supple.host.run. Retrieval of the track afterwards is then simple.
supple.track.start() supple.host.run(....) print("Track:\n" .. supple.track.stop())
Functions
start () | Clear the track data and begin tracking. |
stop () | Stop tracking and return the current track. |
Functions
- start ()
-
Clear the track data and begin tracking.
Call this routine to clear the current track data and begin tracking comms and other Supple internals.
- stop ()
-
Stop tracking and return the current track.
Assuming you have started tracking with supple.track.start you can call this function to stop tracking and retrieve the track as a string.
Returns:
-
string
The track data