hacks/profiling/readme.txt
author William Roberts <williamr@symbian.org>
Mon, 18 Oct 2010 12:30:30 +0100
changeset 66 fc9981c83de7
parent 37 b8aae0a088d8
permissions -rw-r--r--
Add weatherinfo demo to syborg_stem_rom.oby Removed "Out" from etel.dll because it's too severe and kills the startup scripts Didn't add "In" to weatherinfo.exe because we are currently losing QtGui.dll due to dependency on MediaClientAudio.dll
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
37
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     1
Profiling:
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     2
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     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.
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     4
Add it to your rom, and to somewhere (early!) in your startup sequence to find out what's happening during a boot sequence.
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     5
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     6
Argument: -time=<n>
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     7
<n> is the number of milliseconds to wait before stopping the profiler.
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     8
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
     9
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    10
You can put something like this in a startup command list:
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    11
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    12
// ---------------------------------------------------------------------------
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    13
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    14
// r_cmd_profiling
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    15
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    16
// ---------------------------------------------------------------------------
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    17
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    18
//
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    19
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    20
RESOURCE SSM_START_PROCESS_INFO r_cmd_profiling
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    21
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    22
    {
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    23
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    24
    priority = 0xFE01;
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    25
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    26
    execution_behaviour = ESsmFireAndForget;
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    27
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    28
    name = "Z:\\sys\\bin\\startupprofiling.exe";
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    29
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    30
    args = "-time=600000000";
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    31
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    32
    severity = ECmdCriticalSeverity;
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    33
b8aae0a088d8 Adding "Profiling Starter" app so we can see what's going on during boot
Tom Pritchard <tomp@symbian.org>
parents:
diff changeset
    34
    }