profiler

Recommended Open Source Profilers [closed]

核能气质少年 提交于 2019-11-28 16:45:24
I'm trying to find open source profilers rather than using one of the commercial profilers which I have to pay $$$ for. When I performed a search on SourceForge, I have come across these four C++ profilers that I thought were quite promising: Shiny: C++ Profiler Low Fat Profiler Luke Stackwalker FreeProfiler I'm not sure which one of the profilers would be the best one to use in terms of learning about the performance of my program. It would be great to hear some suggestions. You could try Windows Performance Toolkit . Completely free to use. This blog entry has an example of how to do sample

Is there a visual profiler for Python? [closed]

二次信任 提交于 2019-11-28 15:22:18
I use cProfile now but I find it tedious to write pstats code just to query the statistics data. I'm looking for a visual tool that shows me what my Python code is doing in terms of CPU time and memory allocation. Some examples from the Java world are visualvm and JProfiler . Does something like this exist? Is there an IDE that does this? Would dtrace help? I know about KCachegrind for Linux, but I would prefer something that I can run on Windows/Mac without installing KDE. A friend and I have written a Python profile viewer called SnakeViz that runs in a web browser. If you are already

SQL Server Profiler - How to filter trace to only display events from one database?

馋奶兔 提交于 2019-11-28 14:56:23
How do I limit a SQL Server Profiler trace to a specific database? I can't see how to filter the trace to not see events for all databases on the instance I connect to. Under Trace properties > Events Selection tab > select show all columns. Now under column filters, you should see the database name. Enter the database name for the Like section and you should see traces only for that database. Todd Price In SQL 2005, you first need to show the Database Name column in your trace. The easiest thing to do is to pick the Tuning template, which has that column added already. Assuming you have the

Is there a PostgreSQL equivalent of SQL Server profiler?

拥有回忆 提交于 2019-11-28 14:48:38
问题 I need to see the queries submitted to a PostgreSQL server. Normally I would use SQL Server profiler to perform this action in SQL Server land, but I'm yet to find how to do this in PostgreSQL. There appears to be quite a few pay-for tools, I am hoping there is an open source variant. 回答1: You can use the log_statement config setting to get the list of all the queries to a server https://www.postgresql.org/docs/current/static/runtime-config-logging.html#guc-log-statement Just set that, and

No Code Coverage Information for Tests Using Moles

家住魔仙堡 提交于 2019-11-28 14:48:02
I have been getting used to OpenCover over the past few days, and have I noticed that tests using Moles do not generate any Coverage information. I have created a small solution to isolate the problem, and have found that code coverage is generated only for tests that do not have the [HostType("Moles")] attribute. Reading around I have found this and this which seem to be NCover equivalents of my problem. They say that it is something to do with Moles running a profiler as well as the coverage tool, and that there is an environment variable CLRMONITOR_EXTERNAL_PROFILERS that can be set to

Finding the true memory footprint of a Windows application

走远了吗. 提交于 2019-11-28 12:52:40
I've run into a few OutOfMemoryExceptions with my C#/WPF application and I'm running into some confusing data while attempting to profile the memory usage. When the app is typically running, Windows Task Manager shows the memory usage as somewhere around 34 MB (bounces around slightly as objects are created and garbage collected). When I run memory profiling applications such as CLR Profiler and dotTrace Memory , they show the total memory usage at around 1.2 MB. Why this huge discrepancy? What does Task Manager see that these profilers do not? UPDATE: I added some diag code to my application

CUDA profiler reports inefficient global memory access

大城市里の小女人 提交于 2019-11-28 12:08:56
问题 I have a simple CUDA kernel which I thought was accessing global memory efficiently. The Nvidia profiler however reports that I am performing inefficient global memory accesses. My kernel code is: __global__ void update_particles_kernel ( float4 *pos, float4 *vel, float4 *acc, float dt, int numParticles ) { int index = threadIdx.x + blockIdx.x * blockDim.x; int offset = 0; while(index + offset < numParticles) { vel[index + offset].x += dt*acc[index + offset].x; // line 247 vel[index + offset]

Why does the Matlab Profiler say there is a bottleneck on the 'end' statement of a 'for' loop?

坚强是说给别人听的谎言 提交于 2019-11-28 12:04:00
So, I've recently started using Matlab's built-in profiler on a regular basis, and I've noticed that while its usually great at showing which lines are taking up the most time, sometimes it'll tell me a large chunk of time is being used on the end statement of a for loop. Now, seeing as such a line is just used for denoting the end of the loop, I can't imagine how it could use anything other than a trivial amount of processing. I've seen a specific version of this question asked on matlab central , but a consensus didn't seem to be reached. EDIT: Here's a minimal example of this problem: for i

How to monitor just t-sql commands in SQL Profiler?

只愿长相守 提交于 2019-11-28 07:31:36
问题 I have a trouble in monitoring t-sql commands, I want to monitor just commands like: select, insert, update or delete. Can anyone help me? 回答1: Pick a trace template (such as Tuning) and use a filter. Either filter by a particular login (such as your own login or a service's login), a particular database. For instance, to filter by database: Under Trace properties -> Events tab -> Select show all columns. Set a Like filter on database name. I find setting a filter on the number of Logical

C++ Code Profiler

﹥>﹥吖頭↗ 提交于 2019-11-28 05:58:47
Can anybody recommend a good code profiler for C++? I came across Shiny - any good? http://sourceforge.net/projects/shinyprofiler/ Callgrind for Unix/Linux DevPartner for Windows Not C++ specific, but AMD's CodeAnalyst software is free and is feature-packed. http://developer.amd.com/cpu/codeanalyst/codeanalystwindows/Pages/default.aspx Gprof if you use gcc. It may not be user friendly but still useful. Probably you will be interested in Intel VTune . Rather useful and allows to collect low-level events like cache misses which helps a lot in tuning. Quantify (part of the IBM/Rational PurifyPlus