| November 30, 2008 11:00 PM PST | |
- I don't have source code. Can I use Intel® Thread Profiler?
- DOS* Shell Redirection for Input (<) or Output (>)
- I'm using OpenMP* threads. Can I use Thread Profiler for Windows* API?
- How do I view source code in Intel Thread Profiler for Windows* or Pthreads* API results?
- Is there an Intel® Thread Profiler for Linux* product?
I don't have source code. Can I use Intel® Thread Profiler?
Yes. However, Intel Thread Profiler is designed to help you locate and understand threading performance issues in source code. Also note that on Windows*, Intel Thread Profiler for Windows* or Pthreads* API requires an executable file that has a relocation section, and without this no results will be produced for the .EXE file itself. For more information, visit Preparing Your Software: Building or Making Source Code.
DOS* Shell Redirection for Input (<) or Output (>)
My application uses DOS* command-shell redirection for input (<) or output (>). Can I still use Intel Thread Profiler? Yes. Use a .BAT file as the application. For example, create a myStart.bat file with this line:
myProgram.exe < myInputFile > myOutputFile
And then follow these steps:
- Specify myProgram.exe as the Application to launch with the Intel Thread Profiler Wizard.
- Enable (check) Modify default configuration when done with wizard.
- Select Advanced Activity Configuration » Application/Module profiles.
- Select your application, which would be myProgram in this example, and then press the Configure... button.
- Disable (un-check) Add to Modules of Interest List, and then change the Application to Launch Filename: from myProgram.exe to myStart.bat.
I'm using OpenMP* threads. Can I use Intel Thread Profiler for Windows* API?
Yes. You can use Intel Thread Profiler for Windows* API provided you use the Intel® Compilers v8.0, or higher. The Intel Thread Profiler for OpenMP* will show you OpenMP-specific results using OpenMP constructs. Note: If Intel Compiler versions lower than v8.0 are used, then the Intel Thread Profiler for Windows* API results will not be correct.
How do I view source code in Intel Thread Profiler for Windows* or Pthreads* API results?
- To view Thread Create, Close or Entry source code, go to the Profile view and group by Thread or Object. Right-click on any Thread or Object, and then select Creation Source View. If the Creation Source View entry on the menu is not available (grayed-out), then the source code is unknown.
- To view thread transition source code, go to the Profile view and group by Object. Right-click on an object and Filter and Show Source locations Finally right-click on an impact-time bar and select Transition Source View.
- Another way to view thread transition source, is with the Timeline view. Zoom into a section of the time-line, and right-click on an overhead transition. Select Transition Source View.
This article applies to: Intel® Thread Profiler for Windows* Knowledge Base, Software Products General
For more complete information about compiler optimizations, see our Optimization Notice.
Comments (2) 
| April 13, 2011 7:57 AM PDT
杨沛迪 | Thanks very much! |


jay