小编Yis*_*hen的帖子

aws 中的 perf 不支持事件“缓存未命中”

我在 aws(Ubuntu 14.04.4) 上运行 perf 时遇到问题。似乎不支持任何硬件事件。知道发生了什么吗?我正在使用专用实例。

下面是一个例子:

$ perf stat sleep 4

 Performance counter stats for 'sleep 4':

          0.388772 task-clock (msec)         #    0.000 CPUs utilized          
                 1 context-switches          #    0.003 M/sec                  
                 0 cpu-migrations            #    0.000 K/sec                  
               179 page-faults               #    0.460 M/sec                  
   <not supported> cycles                  
   <not supported> stalled-cycles-frontend
   <not supported> stalled-cycles-backend
   <not supported> instructions            
   <not supported> branches                
   <not supported> branch-misses           

       4.000773655 seconds time elapsed
Run Code Online (Sandbox Code Playgroud)

性能版本:

$ perf version
perf version 3.13.11-ckt39
Run Code Online (Sandbox Code Playgroud)

内核版本:

$ uname -r
3.13.0-92-generic
Run Code Online (Sandbox Code Playgroud)

linux amazon-web-services perf

6
推荐指数
0
解决办法
1606
查看次数

python中的IOEerror"没有这样的文件或目录"

我正在编写一个涉及从表中检索数据的django项目.我有一个模块,它有一行来检索一些数据(snp_data.txt是模块的同一目录下的一个文件):

  data = file("snp_data.txt")
Run Code Online (Sandbox Code Playgroud)

当我在django项目之外单独调用它时,该模块运行良好; 当我在django应用程序中调用其他模块时,我一直收到以下错误.

  no such file or directory as 'snp_data.txt'
Run Code Online (Sandbox Code Playgroud)

知道发生了什么事吗?

python django

3
推荐指数
1
解决办法
5141
查看次数

标签 统计

amazon-web-services ×1

django ×1

linux ×1

perf ×1

python ×1