hacks/profiling/readme.txt
branchsystem_startup
changeset 37 b8aae0a088d8
equal deleted inserted replaced
36:ec9266033bd7 37:b8aae0a088d8
       
     1 Profiling:
       
     2 
       
     3 This is a simple tool that will start the sampling profiler, wait a given period (default = 5mins) and then stop, and unload the profiler.
       
     4 Add it to your rom, and to somewhere (early!) in your startup sequence to find out what's happening during a boot sequence.
       
     5 
       
     6 Argument: -time=<n>
       
     7 <n> is the number of milliseconds to wait before stopping the profiler.
       
     8 
       
     9 
       
    10 You can put something like this in a startup command list:
       
    11 
       
    12 // ---------------------------------------------------------------------------
       
    13 
       
    14 // r_cmd_profiling
       
    15 
       
    16 // ---------------------------------------------------------------------------
       
    17 
       
    18 //
       
    19 
       
    20 RESOURCE SSM_START_PROCESS_INFO r_cmd_profiling
       
    21 
       
    22     {
       
    23 
       
    24     priority = 0xFE01;
       
    25 
       
    26     execution_behaviour = ESsmFireAndForget;
       
    27 
       
    28     name = "Z:\\sys\\bin\\startupprofiling.exe";
       
    29 
       
    30     args = "-time=600000000";
       
    31 
       
    32     severity = ECmdCriticalSeverity;
       
    33 
       
    34     }