Changes between Version 5 and Version 6 of DiagnosticsApi
- Timestamp:
- Dec 18, 2008, 4:22:43 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DiagnosticsApi
v5 v6 1 1 = The BOINC diagnostics API = 2 3 The diagnostics API determines where stdout and stderr are sent, 4 and what's written to them. 5 '''BOINC's initialization functions - boinc_init() etc. - 6 set reasonable defaults for these settings. 7 If for some reason you want different settings, this API lets you do it.''' 2 8 3 9 BOINC applications can call … … 9 15 int boinc_init_graphics_diagnostics(int flags) 10 16 }}} 11 to initialize various diagnostic functions. '''This call should be made early in the program - before `boinc_init()` - so that error info is routed appropriately.''' `flags` is formed by or'ing together a subset of the following flags: 12 {{{ 13 #define BOINC_DIAG_DUMPCALLSTACKENABLED 0x00000001L 14 #define BOINC_DIAG_HEAPCHECKENABLED 0x00000002L 15 #define BOINC_DIAG_MEMORYLEAKCHECKENABLED 0x00000004L 16 #define BOINC_DIAG_ARCHIVESTDERR 0x00000008L 17 #define BOINC_DIAG_ARCHIVESTDOUT 0x00000010L 18 #define BOINC_DIAG_REDIRECTSTDERR 0x00000020L 19 #define BOINC_DIAG_REDIRECTSTDOUT 0x00000040L 20 #define BOINC_DIAG_REDIRECTSTDERROVERWRITE 0x00000080L 21 #define BOINC_DIAG_REDIRECTSTDOUTOVERWRITE 0x00000100L 22 #define BOINC_DIAG_TRACETOSTDERR 0x00000200L 23 #define BOINC_DIAG_TRACETOSTDOUT 0x00000400L 24 }}} 17 to initialize various diagnostic functions. '''This call should be made early in the program - before `boinc_init()` - so that error info is routed appropriately.''' `flags` is formed by or'ing together a subset of the following flags. 25 18 26 The flags are as follows. Applications are advised to use at least `BOINC_DIAG_DUMPCALLSTACKENABLED`, `BOINC_DIAG_REDIRECTSTDERR`, and `BOINC_DIAG_TRACETOSTDERR`. 19 Applications are advised to use at least `BOINC_DIAG_DUMPCALLSTACKENABLED`, `BOINC_DIAG_REDIRECTSTDERR`, and `BOINC_DIAG_TRACETOSTDERR`. 20 21 The default is BOINC_DIAG_DUMPCALLSTACKENABLED, BOINC_DIAG_HEAPCHECKENABLED, BOINC_DIAG_MEMORYLEAKCHECKENABLED, BOINC_DIAG_REDIRECTSTDERR, BOINC_DIAG_TRACETOSTDERR 22 27 23 28 24 '''BOINC_DIAG_DUMPCALLSTACKENABLED'''::