profiling

How to profile PyCuda code with the Visual Profiler?

China☆狼群 提交于 2019-12-28 03:04:06
问题 When I create a new session and tell the Visual Profiler to launch my python/pycuda scripts I get following error message: Execution run #1 of program '' failed, exit code: 255 These are my preferences: Launch: python "/pathtopycudafile/mysuperkernel.py" Working Directory: "/pathtopycudafile/mysuperkernel.py" Arguments: [empty] I use CUDA 4.0 under Ubuntu 10.10. 64Bit. Profiling compiled examples works. p.s. I am aware of SO question How to profile PyCuda code in Linux?, but seems to be an

Explicitly freeing memory in c#

£可爱£侵袭症+ 提交于 2019-12-28 02:33:27
问题 I've create a c# application which uses up 150mb of memory (private bytes), mainly due to a big dictionary: Dictionary<string, int> Txns = new Dictionary<string, int>(); I was wondering how to free this memory up. I've tried this: Txns = null; GC.Collect(); But it doesn't seem to make much of a dent in my private bytes - they drop from say 155mb to 145mb. Any clues? Thanks -edit- Okay I'm having more luck with this code (it gets the private bytes down to 50mb), but why? Txns.Clear(); // <-

Beyond Stack Sampling: C++ Profilers

谁都会走 提交于 2019-12-28 01:38:12
问题 A Hacker's Tale The date is 12/02/10. The days before Christmas are dripping away and I've pretty much hit a major road block as a windows programmer. I've been using AQTime, I've tried sleepy, shiny, and very sleepy, and as we speak, VTune is installing. I've tried to use the VS2008 profiler, and it's been positively punishing as well as often insensible. I've used the random pause technique. I've examined call-trees. I've fired off function traces. But the sad painful fact of the matter is

How to profile cython functions line-by-line

折月煮酒 提交于 2019-12-27 20:10:01
问题 I often struggle to find bottlenecks in my cython code. How can I profile cython functions line-by-line? 回答1: Robert Bradshaw helped me to get Robert Kern's line_profiler tool working for cdef functions and I thought I'd share the results on stackoverflow . In short, set up a regular .pyx file and build script and add the following before your call to cythonize . from Cython.Compiler.Options import directive_defaults directive_defaults['linetrace'] = True directive_defaults['binding'] = True

How to profile cython functions line-by-line

别等时光非礼了梦想. 提交于 2019-12-27 20:08:17
问题 I often struggle to find bottlenecks in my cython code. How can I profile cython functions line-by-line? 回答1: Robert Bradshaw helped me to get Robert Kern's line_profiler tool working for cdef functions and I thought I'd share the results on stackoverflow . In short, set up a regular .pyx file and build script and add the following before your call to cythonize . from Cython.Compiler.Options import directive_defaults directive_defaults['linetrace'] = True directive_defaults['binding'] = True

Cabal not installing dependencies when needing profiling libraries?

拟墨画扇 提交于 2019-12-27 17:02:56
问题 I want to compile my program with profiling, so I run: $ cabal configure --enable-executable-profiling ... $ cabal build ... Could not find module 'Graphics.UI.GLUT': Perhaps you havent installed the profiling libraries for package 'GLUT-2.2.2.0'? ... $ # indeed I have not installed the prof libs for GLUT, so.. $ cabal install -p GLUT --reinstall ... Could not find module 'Graphics.Rendering.OpenGL': Perhaps you havent installed the profiling libraries for package 'OpenGL-2.4.0.1'? ... So,

Jboss login and redirect to correct url

懵懂的女人 提交于 2019-12-25 08:16:26
问题 I have this problem and i just cannot find a solution to it. I am using JBoss AS 7 and created a dynamic web project using Eclipse Indigo. From my project i created a simple login form whereby after correctly logging in i should be directed to my appropriate section. Users, Roles and Groups should be managed by jboss and not the project. So jboss should decide where to redirect me after checking in the correct properties files. How can i do this? Can you all help me please. 回答1: Well i

Instruments > Profile - Revoke and request

ε祈祈猫儿з 提交于 2019-12-25 04:27:18
问题 I'm working on an app and can launch it on the device without any problems. However, when I try and Profile it on the device I get the following message: No matching provisioning profiles found No provisioning profiles matching the bundle identifier "<bundle id>" were found. Xcode can resolve this issue by downloading a new provisioning profile from the Member Center. If I then click "Fix Issue" I get this error message with "Your account already has a valid certificate": What's going on? Do

Instruments > Profile - Revoke and request

喜欢而已 提交于 2019-12-25 04:27:07
问题 I'm working on an app and can launch it on the device without any problems. However, when I try and Profile it on the device I get the following message: No matching provisioning profiles found No provisioning profiles matching the bundle identifier "<bundle id>" were found. Xcode can resolve this issue by downloading a new provisioning profile from the Member Center. If I then click "Fix Issue" I get this error message with "Your account already has a valid certificate": What's going on? Do

Profiling build performance of Eclipse Maven Java project

十年热恋 提交于 2019-12-25 04:13:41
问题 I'm using a modern version of Eclipse with few plug-ins on a powerful computer to build a rather small Maven-based Java project which also has one other Eclipse project as dependency † . Nevertheless, the build times for this project are atrocious — to the point that I even had to disable automatic building for the project, which I've never done before. How can one profile the actual build process of an Eclipse project which uses Maven for building? Environment Windows 10 Pro 64-bit Intel i7