2015-11-20 36 views
2

我在我的Linux機器安裝的JProfiler,我的數據保存到文件.JPS。然後我將這個文件加載到本地機器的jProfiler UI中。JProfiler的不給方法級別統計

這裏是我的配置文件:

<?xml version="1.0" encoding="UTF-8"?> 
<config> 
    <nextId id="104" /> 
    <generalSettings setupHasRun="false"> 
    <recordingProfiles> 
     <recordingProfile id="10" name="CPU recording"> 
      <actionKey id="cpu"/> 
     </recordingProfile> 
    </recordingProfiles> 
    </generalSettings> 
    <templates> 
    <template id="50" name="Instrumentation, all features supported" startFrozen="false" recordCPUOnStartup="false" vmCannotExit="false" instrumentationType="1" samplingNoFilters="false" lineNumbers="false" samplingFrequency="5" timeType="1" disableCPUProfiling="false" recordAllocOnStartup="true" recordArrayAlloc="true" enableTriggersOnStartup="true" allocTreeRecordingType="1" disableMonitorContentions="false" componentDetection="true" chronoHeap="false" autoUpdatePeriodLong="5" autoUpdatePeriodShort="2" allUrls="false" payloadCap="50" eventCap="20000" showSystemThreads="false" utilConcurrentHandling="true" libraryDebugParameters="" exceptionalCap="5" exceptionalTimeType="4" autoTuneInstrumentation="true" autoTuneMaxAverage="100" autoTuneMinPerMille="10" samplingPayloadCallStacks="true" description="This is JProfiler's fully featured mode. In this setting, call stack information is accurate, but CPU overhead and distortion of measured call times may be high, depending on your filter settings. You should define inclusive filters for your own packages." system="true" /> 
    <template id="51" name="Sampling for CPU profiling, some features not supported" startFrozen="false" recordCPUOnStartup="false" vmCannotExit="false" instrumentationType="3" samplingNoFilters="false" lineNumbers="false" samplingFrequency="5" timeType="1" disableCPUProfiling="false" recordAllocOnStartup="true" recordArrayAlloc="true" enableTriggersOnStartup="true" allocTreeRecordingType="1" disableMonitorContentions="false" componentDetection="true" chronoHeap="false" autoUpdatePeriodLong="5" autoUpdatePeriodShort="2" allUrls="false" payloadCap="50" eventCap="20000" showSystemThreads="false" utilConcurrentHandling="true" libraryDebugParameters="" exceptionalCap="5" exceptionalTimeType="4" autoTuneInstrumentation="true" autoTuneMaxAverage="100" autoTuneMinPerMille="10" samplingPayloadCallStacks="true" description="This template is particularly suitable for CPU profiling and for memory profiling when accurate allocation information is not important. Sampling has a very low overhead and does not distort measured call tines. Some views, like the method statistics are no available. JEE payloads cannot be annotated in the call tree, but payload hotspots without backtraces are available." system="true" /> 
    </templates> 
    <sessions> 
    <session id="80" templateId="50" name="Animated Bezier Curve Demo" type="1" isStartupWorkingDirectory="true" mainClass="bezier.BezierAnim"> 
     <filters> 
     <filter type="inclusive" name="com." /> 
     </filters> 
     <exceptionalMethods/> 
     <classPath> 
     <classPathEntry path="demo/bezier/classes" /> 
     </classPath> 
     <sourcePath> 
     <sourcePathEntry path="demo/bezier/src" /> 
     </sourcePath> 
     <probes> 
     <probe name="com.jprofiler.agent.probe.interceptor.TrackingInterceptor" enabled="true" startProbeRecording="false" events="false" annotatePayloads="false"> 
      <id value="3" /> 
     </probe> 
     </probes> 
    </session> 

我現在面臨的問題是,我不能夠得到關於JProfiler的UI CPU意見選項卡下的方法統計的任何細節。

,但我能得到其他領域中的Telemetrics。

使用的版本:JProfiler的9.1和我已經使用示例config.xml開始與我的測試。我需要在我的配置文件中的任何改變讓我.JPS方法級別統計文件

回答

2

統計學方法被單獨地記錄,因爲開銷過高始終與CPU數據一起記錄。

,在會話現場,去的方法統計視圖,並具有錄像功能。對於離線分析,有一個啓動方法統計記錄的觸發操作。

+0

嗨,你可以請提供一個例子在config.xml文件中添加觸發器代碼。 –

+0

您必須在GUI中配置觸發器,配置文件格式不打算手動寫入。欲瞭解更多信息,請參閱http://resources.ej-technologies.com/jprofiler/help/doc/helptopics/config/triggers.html –

+0

嗨,我創建了一個新的會話,並在GUI中添加觸發器的方法。但是在哪裏獲得新會話的配置文件?這樣我可以把它在我的機器,並使用這個會話ID,同時剖析 –