很多perf输出不支持

时间:2016-09-13 19:50:19

标签: linux linux-kernel perf

我的计算机上 import { NgModule } from '@angular/core'; import { BrowserModule } from '@angular/platform-browser'; import { AppComponent } from './app.component'; import { FormsModule,ReactiveFormsModule } from '@angular/forms'; import { routing } from './app.rotes'; import { UserCheck } from './UserCheck'; import { LogMessage } from './LogMessage'; import { AccessDenied } from './AccessDenied'; import { UserDetailGuard } from './UserDetailGuard' @NgModule({ imports: [ BrowserModule,FormsModule,ReactiveFormsModule,routing,], declarations: [ AppComponent,AccessDenied ], bootstrap: [ AppComponent], providers: [UserCheck,LogMessage,UserDetailGuard] }) export class AppModule { } 只支持一组有限的统计信息:

perf

因此,我甚至无法获得循环计数:

charles@charlesSpark-VirtualBox:~$ uname -r
4.4.0-36-generic
charles@charlesSpark-VirtualBox:~$ perf --version
perf version 4.4.16
charles@charlesSpark-VirtualBox:~$ ls /sys/devices
breakpoint  LNXSYSTM:00  msr  pci0000:00  platform  pnp0  power  software  system  tracepoint  virtual

$ perf list

 List of pre-defined events (to be used in -e):

 alignment-faults                                   [Software event]
 bpf-output                                         [Software event]
 context-switches OR cs                             [Software event]
 cpu-clock                                          [Software event]
 cpu-migrations OR migrations                       [Software event]
 dummy                                              [Software event]
 emulation-faults                                   [Software event]
 major-faults                                       [Software event]
 minor-faults                                       [Software event]
 page-faults OR faults                              [Software event]
 task-clock                                         [Software event]

 msr/smi/                                           [Kernel PMU event]
 msr/tsc/                                           [Kernel PMU event]
 power/energy-cores/                                [Kernel PMU event]
 power/energy-gpu/                                  [Kernel PMU event]
 power/energy-pkg/                                  [Kernel PMU event]
 power/energy-ram/                                  [Kernel PMU event]

 rNNN                                               [Raw hardware event    descriptor]
 cpu/t1=v1[,t2=v2,t3 ...]/modifier                  [Raw hardware event descriptor]
  (see 'man perf-list' on how to encode it)

 mem:<addr>[/len][:access]                          [Hardware breakpoint]

在查看http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/tools/perf/之前,我想我会问。我已经安装了pacakges charles@charlesSpark-VirtualBox:~$ perf stat -e cycles pwd /home/charles Performance counter stats for 'pwd': <not supported> cycles 0.027393147 seconds time elapsed linux-tools-common和其他几个。

0 个答案:

没有答案