sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.doc.user/html/tasks/analyser/an_load_trace_files.htm
changeset 2 b9ab3b238396
child 5 844b047e260d
equal deleted inserted replaced
1:1050670c6980 2:b9ab3b238396
       
     1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
       
     2 <html>
       
     3 <head>
       
     4   <meta http-equiv="Content-Type"
       
     5  content="text/html; charset=iso-8859-1">
       
     6   <title>Loading Sample Trace File for Analysis</title>
       
     7   <link href="../../../book.css" rel="stylesheet" type="text/css">
       
     8 </head>
       
     9 <body>
       
    10 <h2>Importing Profiler Data Files</h2>
       
    11 <p>After capturing run-time information from your application on the
       
    12 target device, saving the profiler data file, and transfering the file
       
    13 to your PC, you must then import the profiler data (.dat) file.
       
    14 Importing the data file converts the file into a format that can be
       
    15 displayed by the analyzer (a .NPI file).</p>
       
    16 <p class="note"><strong>NOTE</strong> If a large .dat file is imported, the graph and table response time will slow down   until the  large NPI file is saved. Saving the NPI file will be performed in the background and  cannot be canceled.</p>
       
    17 <p>Importing a profiler data file will vary depending on if your
       
    18 application was built by Carbide.c++ or is a standalone application. To
       
    19 find the binaries in your application, the importer will need the *.pkg
       
    20 file created when your application was built, or you will need to list
       
    21 all application binaries. If you wish to analyze applications that
       
    22 execute at a static address, you will need the ROM image .symbol file
       
    23 that represents your phone. For dynamically loaded binaries stored in a
       
    24 phone&#8217;s ROFS or ROM, a .oby file can be used to describe and list
       
    25 binaries.</p>
       
    26 <p>Unless your application executes from a fixed address in phone
       
    27 memory (e.g., is part of the flashed phone image), enable dynamic
       
    28 binary support in the Profiler application when capturing your
       
    29 application data in a profiler data file.</p>
       
    30 <p>To import your profiler data file, perform the following steps.</p>
       
    31 <div class="step">
       
    32 <h4>Importing a Profiler Data File</h4>
       
    33 <ol>
       
    34   <li><a name="Select_Performance_Investigator_Data"></a>Select
       
    35 Performance Investigator Data</li>
       
    36   <p>Select <strong>File &gt; Import...</strong> from Carbide.c++ to
       
    37 display Import dialog box (Figure 1), and select Performance
       
    38 Investigator Data and click <strong>Next</strong>.</p>
       
    39   <p align="center"><img src="images/importdatfile_step1.png"
       
    40  width="470" height="550"></p>
       
    41   <p align="center" class="figure">Figure 1. Carbide.c++ Import window </p>
       
    42   <li><a name="Select_Profiler_Data_File"></a>Select Profiler Data File</li>
       
    43   <p>Click <strong>Profiler Sample File...</strong>   and select the .dat file you transferred to your PC. The
       
    44 .dat file will be converted to a format displayable by the Carbide.c++
       
    45 analyzer and assigned the .npi extension (Figure 2). Click <strong>Next</strong>
       
    46 to continue.</p>
       
    47   <p align="center"><img src="images/CB_import_step2.PNG" width="541"
       
    48  height="385"></p>
       
    49   <p align="center" class="figure">Figure 2. Select Profiler Data File</p>
       
    50   <li><a name="Select_Known_Available_Information"></a>Select Known Available information </li>
       
    51   <p align="left">Use the <strong>Available Information</strong> page to choose how the
       
    52     profiler session is imported. The options include:</p>
       
    53   <ul>
       
    54     <li>Project importer &#8212; select this option if you have a Carbide project that has a PKG file or if you have a standalone PKG file (a PKG file that has absolute paths)</li>
       
    55     <li>Project and ROM importer &#8212; select this option if you have both a Carbide project / package file for the profiled application as well as the ROM image symbol file and OBY file for the profiled device </li>
       
    56     <li>ROM importer &#8212; select this option if you have  the ROM image symbol file and the OBY file for the profiled device</li>
       
    57     <li>Unknown importer &#8212; select this option when you have neither a project or a ROM image </li>
       
    58   </ul>
       
    59   <p align="left">Click <strong>Next</strong> to continue.</p>
       
    60   <p align="left" class="note"><strong>NOTE</strong> You can also click the Finish button (if enabled) to fill in the remaining wizard pages  with persisted values from the last .dat file import. In a new workspace or first time a workspace is used, you will need to define related information in remaining pages, since there is no previous import related to the new workspace. For a new imported .dat file, a new output file name will be generated base on this input file name (+ _digit + .npi).</p>
       
    61   <p align="center"><img src="images/import_dat_file_step3.png"
       
    62  width="629" height="705"></p>
       
    63   <p align="center" class="figure">Figure 3. Enter known Available
       
    64     Information</p>
       
    65   <li><a name="ROM_files"></a>If  <strong>Both</strong> or <strong>the ROM image symbol file</strong> option is selected, the <strong>Select build files from ROM</strong> dialog appears. (optional) </li>
       
    66   <p>Use the <strong><a href="../../reference/analyzer/import_rom_build_files.htm">Select build files from ROM</a></strong> dialog to select the build files that correspond to the ROM on the device. Start by selecting the SDK, then the ROM OBY file as well as the ROM symbol file. When done, clickc Next. </p>
       
    67   <p align="center"><img src="../../images/wnd_import_rom_build_files.png" width="629" height="705"></p>
       
    68   <p class="figure">Figure 4. Select build files from ROM dialog</p>
       
    69   <li><a name="Select_Associated_Project_and_Package"></a>Select
       
    70     Associated Project and Package (.pkg) File</li>
       
    71   <p align="left">Use the Associated Project and Package (.pkg) File
       
    72     page to select one or more projects to associate with the imported .dat
       
    73     file as well as choosing its project configuration. Use the Add PKG
       
    74     File control to add a .pkg file during the import operation or the
       
    75     Remove PKG Files control to remove a PKG file from the imported
       
    76     profiler session. Click <strong>Next</strong> to continue.</p>
       
    77   <p align="center"><img src="images/import_dat_file_step4.png"
       
    78  width="517" height="496"></p>
       
    79   <p align="center" class="figure">Figure 5. Enter Associated Project
       
    80     and Pakage (.pkg) File Information</p>
       
    81   <li>Select Key Press Mapping Profile (requires button trace information)</li>
       
    82   <p>If the DAT file has button trace enable, the <b>Select Key Press Mapping Profile</b> page appears. Select either a Carbide builtin Key Map Profile or user defined profile (if available) for the target device  key map. The  key map profile selected in the  <strong>Window &gt; Preferences &gt; Carbide.c++ &gt; Performance Investigator</strong> preference panel is highlighted as the suggested default. </p>
       
    83   <p>A suggested key profile will also be selected if only one ROM kit/SDK is selected previously in this import wizard or the profile XML file in the ROM kit/SDK contains only   one key map profile.</p>
       
    84   <p align="center"><img src="images/importdatfile_keyprofile.png" alt="keymap profile" width="541" height="516"></p>
       
    85   <p align="center" class="figure">Figure 6. Select Key Press Mapping Profile </p>
       
    86   <li><a name="Select_Output_File_and_Project"></a>Select Output File
       
    87     and Project </li>
       
    88 
       
    89   <p>Use the Output File and Project page to import the .dat file into
       
    90 an existing project or create a new empty project. In addition, use the
       
    91 Output file name field to specify the name output file name for the
       
    92 imported .dat file.</p>
       
    93 
       
    94   <p align="center"><img src="images/import_dat_file_step5.png"
       
    95  width="517" height="496"></p>
       
    96   <p align="center" class="figure">Figure 7. Enter Output File and
       
    97 Project Information</p>
       
    98   <li>Click Finish to create the *.npi file and open it with the
       
    99 Analyzer (Figure 8).</li>
       
   100   <p align="center"><img src="images/importdatfile_step7.png"
       
   101  width="708" height="653"></p>
       
   102   <p align="center" class="figure">Figure 8. Performance Investigator
       
   103 Analyzer</p>
       
   104 </ol>
       
   105 </div>
       
   106 <p align="left"><strong>Related references</strong></p>
       
   107 <ul>
       
   108   <li><a href="../../reference/analyzer/main_view.htm" align="left">Analyzer
       
   109 View</a></li>
       
   110   <li><a href="key_profile_pref.htm">Key Press Profile</a> </li>
       
   111 </ul>
       
   112 <div id="footer">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
       
   113 </body>
       
   114 </html>