Event Configuration from the Command Line
2012-03-17 19:06
363 查看
June 7, 2011 9:00 PM PDT | |
of the Command-line Reference. This article documents additional information about configuring those events.
The
event-config"knob", or switch, allows you to configure the events to collect and, optionally, the sample-after value for each event. The
event-configknob is only valid when used in conjunction with the
-collect-withoption of the command line and passing the value '
runsa'. For example (note, command is split over two lines for ease of reading; enter all options on one line):
$ amplxe-cl -collect-with runsa -knob event-config=CPU_CLK_UNHALTED.CORE, CPU_CLK_UNHALTED.REF,INST_RETIRED.ANY -- C:\test\sample.exe
In this case, the default sample-after values will be used for the events specified. To set the sample after values, use this syntax:
-event-config=<event-name>:sa=<sample-after value>,...
For example,
$ amplxe-cl -collect-with runsa -knob event-config=CPU_CLK_UNHALTED.CORE:sa=1000000, INST_RETIRED.ANY:sa=100000 -- C:\test\sample.exe
Usually, for the CPU_CLK_* events, the default sample-after value is based on the frequency of the processor and is sufficient to collect a statistically-signification rate of 1000 samples per second. Other events may not occur frequently enough to be statistically
significant and setting the sample-after value lower than the default can help to improve the data collection. Please see the
Manual Calibration section of the
Introduction to Sampling and Time white paper. Although this paper is based on the older VTune Performance Analyzer, the technique described is still applicable.
Currently, the only way to view the sample-after values is to display the results of a run with the default values using the 'sfdump' report type, e.g.,
Event Summary CPU_CLK_UNHALTED.CORE 368 = Samples collected due to this event 2000000 = Sample after value used during collection 736000000 = Total events (samples*S***) CPU_CLK_UNHALTED.REF 806 = Samples collected due to this event 1000000 = Sample after value used during collection 806000000 = Total events (samples*S***) INST_RETIRED.ANY 229 = Samples collected due to this event 2000000 = Sample after value used during collection 458000000 = Total events (samples*S***)
Do you need more help?
Search knowledge base
Visit user forums
Find additional support
相关文章推荐
- Export Xellerate configuration objects to XML files from the command-line
- Using the Code Coverage Tools from the Command Line
- Run iOS Simulator from the Command Line (runsim)
- IS12 Changing Project Properties from the Command Line
- Visual C# 2010 Recipes A Problem-Solution Approach 代码一 —— Create a Console Application from the Command Line
- Building Xcode iOS projects and creating *.ipa file from the command line
- Creating SQL procedures from the command line
- How to create Windows EventLog source from command line?
- Running the complier from the Command Line
- OpenSSL: Generating an RSA Key From the Command Line
- How to access Dropbox from the command line in Linux
- watermarking-videos-from-the-command-line-using-ffmpeg-filters
- Take screenshots from the command line in Linux
- 使用命令行工具管理Android项目(Managing Projects from the Command Line)
- Calling JNI Functions with Java Object Arguments from the Command Line
- How do I drop a MongoDB database, from the command line?
- 10 Ways to Generate a Random Password from the Command Line
- [Node] Run Local DevDependencies from the Command Line with npx
- Create Windows Server 2008 cluster from the command line
- Creating a website from the command line