profiling

Profiling Django with PyCharm

做~自己de王妃 提交于 2020-08-04 04:45:26
问题 My app is pretty slow even in a dev environment so I would like to figure out what's slowing it down so I can try and fix it. I know about the debug toolbar and according to what it reports neither the database queries nor the downloaded sources are the issue, so it must be the business logic. However, I cannot run the PyCharm profiler with the Django server because, well, it's not like running a script. How may I profile Django with PyCharm? 回答1: You should probably set configuration

Can perf-stat results be generated from a perf.data file?

痞子三分冷 提交于 2020-08-02 07:20:14
问题 When I want to generate performance reports using perf-stat and perf-report from the Linux tool suite perf, I run: $ perf record -o my.perf.data myCmd $ perf report -i my.perf.data And: $ perf stat myCmd But that means I run 'myCmd' a second time, which takes several minutes. Instead, I was hoping for: $ perf stat -i my.perf.data But unlike most of the tools in the perf suite, I don't see a -i option for perf-stat. Is there another tool for this, or a way to get perf-report to generate

Can perf-stat results be generated from a perf.data file?

只谈情不闲聊 提交于 2020-08-02 07:19:45
问题 When I want to generate performance reports using perf-stat and perf-report from the Linux tool suite perf, I run: $ perf record -o my.perf.data myCmd $ perf report -i my.perf.data And: $ perf stat myCmd But that means I run 'myCmd' a second time, which takes several minutes. Instead, I was hoping for: $ perf stat -i my.perf.data But unlike most of the tools in the perf suite, I don't see a -i option for perf-stat. Is there another tool for this, or a way to get perf-report to generate

Can perf-stat results be generated from a perf.data file?

孤人 提交于 2020-08-02 07:19:44
问题 When I want to generate performance reports using perf-stat and perf-report from the Linux tool suite perf, I run: $ perf record -o my.perf.data myCmd $ perf report -i my.perf.data And: $ perf stat myCmd But that means I run 'myCmd' a second time, which takes several minutes. Instead, I was hoping for: $ perf stat -i my.perf.data But unlike most of the tools in the perf suite, I don't see a -i option for perf-stat. Is there another tool for this, or a way to get perf-report to generate

Using perf to monitor raw event counters

走远了吗. 提交于 2020-07-17 06:48:54
问题 I am trying to measure certain hardware events on a (Intel Xeon) machine with multiple (physical) processors. Specifically, I wish to know how many requests are issued for reading 'offcore' data. I found the OFFCORE_REQUESTS hardware event in Intels documentation and it gives the event descriptor 0xB0 and for data demands, the additional mask 0x01. Would it then be correct to tell perf to record the event 0xB1 (i.e. 0xB0 | 0x01 ) and to call it as: perf record -e r0B1 ./mytestapp someargs Or

Android Profiling is unavailable for the selected process, but advanced profiling is enabled

℡╲_俬逩灬. 提交于 2020-06-25 10:57:21
问题 I am developing an Android app with multiple modules. The app uses ProGuard, compileSdkVersion is set to 27 in all modules, and when I tried to enable Advanced Profiling I continue to get a message saying "Advanced profiling is unavailable for the selected process". Solutions I've tried after searching other questions about the topic: Enable Advanced Profiling (obviously) for the app as well as the default Run Configurations Disable ProGuard in all modules using minifyEnabled false Update