Truxton dump black box
Jump to navigation
Jump to search
This function tells a Truxton process on this machine to dump its state.
Contents
Syntax
void truxton_dump_black_box( uint64_t process_id );
Parameters
process_id
The id of the process to dump.
Sample
void whats_going_on( uint64_t process_id )
{
printf( "Dumping the black box of process %" PRIU64 "\n" );
truxton_dump_black_box( process_id );
}
The PRIu64 in the sample code above is a standard way of formatting a 64-bit unsigned integer in C.
Over the years, different compilers on different operating systems used different format specifiers for things, these PRI macros, along with some tricky string concatenation the compilers perform for you, allow you to maintain a single code base without a bunch of macro magic.