profiling

How to profile PyCuda code in Linux?

末鹿安然 提交于 2019-12-22 12:38:19
问题 I have a simple (tested) pycuda app and am trying to profile it. I've tried NVidia's Compute Visual Profiler, which runs the program 11 times, then emits this error: NV_Warning: Ignoring the invalid profiler config option: fb0_subp0_read_sectors Error : Profiler data file '/home/jguy/proj/gpu/tdbp/pyArch/temp_compute_profiler_0_0.csv' does not contain profiler output.This can happen when: a) Profiling is disabled during the entire run of the application. b) The application does not invoke any

Ways to corner a stickiness bug

我们两清 提交于 2019-12-22 11:30:12
问题 How to determine exactly what a piece of software is doing when it is stuck, unresponsive to user input and not updating its display? I have tried oprofile, which records what function is executing, but it's not giving me enough clues. It counts everything that happens during the time it's running, when I need to see what's happening only when the specimen program is stuck. The problem might involve interrupts, waiting on network sockets, timers, a GUI event handler, or who knows what. How to

How to avoid redeclaring ticks on every file in PHP 7

自古美人都是妖i 提交于 2019-12-22 11:24:54
问题 Overview In PHP 5.6 it seems that adding declare(ticks=1) and then using register_tick_function() would follow any includes and provide profiling information accordingly. In PHP 7+ however it now seems I have to add declare(ticks=1) in every file. I use this for profiling every method call on a page load and don't now want to add this to each PHP file in my system (some I can't if they are in libraries). I can't find anything in the docs about changes that were made to this. Replication Steps

Memory sampling with jvisualvm

一笑奈何 提交于 2019-12-22 11:24:01
问题 I am using memory sampling feature of Java Visual VM and I can't answer the questions: Why are there so many instances created? Why does these numbers of instances and bytes keep increasing? For instance, I created a very simple Java program as follow: public class TestMemory{ public static void main(String[] args) throws InterruptedException { System.out.println("Hello"); Thread.sleep(60 * 60 * 1000); } } And I can see in Java Visual VM that there are 611 classes. The number of instances

Profiling ASP.net applications over the long term?

时光怂恿深爱的人放手 提交于 2019-12-22 10:59:51
问题 What is the accepted way to instrument a web-site to record execution statistics? How long it takes to X For example, i want to know how long it takes to perform some operation, e.g. validating the user's credentials with the Active Directory server: authenticated = CheckCredentials(Login1.UserName, Login1.Password); A lot of people will suggest using Tracing , of various kinds, to output, or log, or record, the interesting performance metrics: var sw = new System.Diagnostics.Stopwatch(); sw

Profiling with Stack

こ雲淡風輕ζ 提交于 2019-12-22 10:07:25
问题 I'm trying to get profiling working in Stack, so that I can get the same metrics as the one indicated on Chapter 25 of RWH. I started a new Stack project, as follows: stack new test Then, as indicated here I ran: stack install --executable-profiling --library-profiling --ghc-options="-rtsopts" However this command fails with the following error: While constructing the BuildPlan the following exceptions were encountered: -- While attempting to add dependency, Could not find package base in

How to get complete stack dump from profiler in every sample for use in flame graph?

…衆ロ難τιáo~ 提交于 2019-12-22 10:01:22
问题 I really like the idea of the Flame Graph for profiling since it will help in eliminating unneeded function calls. There is a catch however in that it requires the profiler to do a complete stack dump each time it collects a sample. This can be accomplished with DTrace or SystemTap quite easily, but I need to be able to do this on an ARM device running ubuntu (which eliminates DTrace). I would also like to do this without recompiling the kernel (which eliminates SystemTap). Is it possible to

Profiling the GIL

冷暖自知 提交于 2019-12-22 09:56:21
问题 Is there a way to profile a python process' usage of the GIL ? Basically, I want to find out what percentage of the time the GIL is held . The process is single-threaded. My motivation is that I have some code written in Cython, which uses nogil . Ideally, I would like to run it in a multi-threaded process, but in order to know if that can potentially be a good idea, I need to know if the GIL is free a significant amount of the time. I found this related question, from 8 years ago. The sole

Use aspectj to profile selected methods

可紊 提交于 2019-12-22 08:55:52
问题 I'd like to use aspectj to profile a library. My plan was to mark methods that require profiling with an annotation: @Profiled("logicalUnitOfWork") And then have an aspect that would fire before and after methods that would use the logicalUnitOfWork to highlight the profiled content. So, my pointcut to start with looks like this. Note that I don't have the argument for the annotation here; that's one of the things I'm not sure how to do: pointcut profiled() : execution(@Profiled * *());

Extremely low FPS, what profiling application should I use to find performance issues?

大城市里の小女人 提交于 2019-12-22 06:59:13
问题 I'm creating an XNA game and am getting an unexpected result, extremely low FPS (About 2-12 fps). What program should I use to test performance and track down what is slowing it down? 回答1: Have you tried using SlimTune? You could also use StopWatch to measure sections manually. 回答2: Okay, let me bring my personal experience with game development in XNA. The first thing you need to do is go into Debug -> Start Performance Analysis. This profiles your CPU activity and see's what threads are in