Changes between Version 6 and Version 7 of Commentary/Hpc


Ignore:
Timestamp:
Jan 10, 2007 6:31:57 PM (9 years ago)
Author:
AndyGill
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Hpc

    v6 v7  
    5353== Tracer Mode ==
    5454
    55 There is a mode '-fhpc-tracer', which compiles code which outputs .rix files; a record
    56 of everywhere the program goes.
     55There is a mode '-fhpc-tracer', which compiles code that talks to the hpc-tracer.
    5756
    58  * by default, the -fhpc-tracer program does exactly the same as a -fhpc compiled program.
    59  * setting the env var HPCRIX causes an additional action, at each tick (and a few other important events),
    60    the global tick number is written into the file named in HPCRIX.
    61  * Typically, HPCRIX would point to a named pipe.
     57 * By default, the -fhpc-tracer program does exactly the same as a -fhpc compiled program.
     58 * When running inside the hpc-tracer context, each tick and a few other important events calls into
     59   the Hpc runtime system function hs_hpc_tick(..).
     60 * This checks to see if any breakpoint has been met, and if so, starts a dialog with the parent hpc-tracer.
    6261
    63 There is a Hpc tracer which sets up both the named pipe, and the HPCRIX variable exactly for dynamically
    64 interacting with the tracer output.
     62=== Tracer Debugging Low Level command language ===
     63
     64|| command || purpose || example ||
     65|| c<number> || sets the global tick counter breakpoint || c1234567 ||
     66|| b<id> || sets a breakpoint an entry to the global tick number <id> || b23 ||
     67|| u<id> || remove the breakpoint at entry to the global tick number <id> || u23 ||
     68||  || continue till the next breakpoint || (newline) ||
    6569
    6670== Machine Generated Haskell ==