Windows Store Application Targets
Intel® VTune™
supports a
hardware event-based sampling analysis for Windows Store C/C++, C# and JavaScript applications running via the
Profiler
Attach to Process
and
Profile System
modes. The
Launch Application
mode is not supported.
Before analysis make sure you have
administrative privileges to run the data collection.
Support Limitations for Windows Store C# Application Analysis
Starting from Microsoft Windows 8*, all Windows Store C# applications are automatically pre-compiled with the NGEN service during each 24 hours.
VTune
cannot resolve Native Image methods since symbol information for these methods is absent. As a result, when you profile a pre-compiled application with the Profiler
VTune
, you have
Profiler
[unknown]
function entries instead of C# methods. You can either generate
.pdb
files for native images via the Ngen.exe
tool or temporarily workaround this problem until the next automatic NGEN pre-compilation:
- Locate automatically pre-compiled assemblies. Typically 32-bit assemblies are located inC:\Users\Administrator\AppData\Local\Packages\<and 64-bit assemblies are located inpackage>\AC\Microsoft\CLR_v4.0_32\NativeImages\C:\Users\Administrator\AppData\Local\Packages\<folders.package>\AC\Microsoft\CLR_v4.0_32\NativeImages\<package>varies with applications. To identify the package, use any of the following options:
- Open theTask Managerand check the properties for your application. TheGeneraltab contains the package value including the version that should be omitted. For example, if theGeneraltab displays47828<, then NGEN'ed modules are located inapp_name>_1.0.0.4_neutral__sgvg9sxsmbbt4C:\Users\Administrator\AppData\Local\Packages\47828<.app_name>_sgvg9sxsmbbt4\AC\Microsoft\CLR_v4.0_32\NativeImages\
- Use theProcess Explorertool: explore the list of modules loaded in the application, find*.ni.exemodules and get their location.
- Rename the folders that include*.ni.dllor*.ni.exe. For example, renameC:\Users\Administrator\AppData\Local\Packages\47828<toapp_name>_sgvg9sxsmbbt4\AC\Microsoft\CLR_v4.0_32\NativeImages\<app_name>C:\Users\Administrator\AppData\Local\Packages\47828<.app_name>_sgvg9sxsmbbt4\AC\Microsoft\CLR_v4.0_32\NativeImages\<app_name>
- Re-start your application.CLR JIT-compiles the methods. You can use theVTuneto profile your C# application until the next automatic NGEN pre-compilation.ProfilerThis workaround is not recommended for .NET* Framework libraries (for example,mscorlib.dll).
Support Limitations for Windows Store JavaScript Application Analysis
VTune
supports mapping to the source file for JavaScript modules. But when you dive to the source from the grid or Timeline pane, the Profiler
VTune
does not locate the most performance-critical code line by default but opens the first line of the function in the Source pane. Use the
navigation buttons to switch between hot code lines.
Profiler