1debug::heartbeat(n) debug narrative debug::heartbeat(n)
2
3
4
5______________________________________________________________________________
6
8 debug::heartbeat - debug narrative - heartbeat
9
11 package require Tcl 8.5
12
13 package require debug::heartbeat ?1?
14
15 package require debug ?1?
16
17 debug heartbeat ?delta?
18
19______________________________________________________________________________
20
23 debug heartbeat ?delta?
24 This method activates or disables a heartbeat with which to mon‐
25 itor the event loop of an event-based Tcl application.
26
27 It reserves the debug tag heartbeat for its operation and writes
28 a message every delta milliseconds.
29
30 A delta-value <= 0 disables the heartbeat.
31
32 The message produced by the heartbeat contains a sequence
33 counter and the time in milliseconds since the last beat, thus
34 providing insight into timing variationsn and deviations from
35 the nominal delta.
36
38 This document, and the package it describes, will undoubtedly contain
39 bugs and other problems. Please report such in the category debug of
40 the Tcllib Trackers [http://core.tcl.tk/tcllib/reportlist]. Please
41 also report any ideas for enhancements you may have for either package
42 and/or documentation.
43
44 When proposing code changes, please provide unified diffs, i.e the out‐
45 put of diff -u.
46
47 Note further that attachments are strongly preferred over inlined
48 patches. Attachments can be made by going to the Edit form of the
49 ticket immediately after its creation, and then using the left-most
50 button in the secondary navigation bar.
51
53 debug, heartbeat, log, narrative, trace
54
56 debugging, tracing, and logging
57
59 Copyright (c) 200?, Colin McCormack, Wub Server Utilities
60 Copyright (c) 2012, Andreas Kupries <andreas_kupries@users.sourceforge.net>
61
62
63
64
65tcllib 1 debug::heartbeat(n)