profiler

How to profile memory usage?

我的未来我决定 提交于 2019-11-27 01:31:59
I am aware of Valgrind, but it just detects memory management issues. What I am searching is a tool that gives me an overview, which parts of my program do consume how much memory. A graphical representation with e.g. a tree map (as KCachegrind does for Callgrind) would be cool. I am working on a Linux machine, so windows tools will not help me very much. ismail Use massif , which is part of the Valgrind tools. massif-visualizer can help you graph the data or you can just use the ms_print command. Paolo M Try out the heap profiler delivered with gperftools , by Google. I've always built it

C++ Code Profiler

我是研究僧i 提交于 2019-11-27 01:08:21
问题 Can anybody recommend a good code profiler for C++? I came across Shiny - any good? http://sourceforge.net/projects/shinyprofiler/ 回答1: Callgrind for Unix/Linux DevPartner for Windows 回答2: Not C++ specific, but AMD's CodeAnalyst software is free and is feature-packed. http://developer.amd.com/cpu/codeanalyst/codeanalystwindows/Pages/default.aspx 回答3: Gprof if you use gcc. It may not be user friendly but still useful. 回答4: Probably you will be interested in Intel VTune. Rather useful and

How to efficiently use Rprof in R?

时光总嘲笑我的痴心妄想 提交于 2019-11-26 23:35:52
I would like to know if it is possible to get a profile from R -Code in a way that is similar to matlab 's Profiler. That is, to get to know which line numbers are the one's that are especially slow. What I acchieved so far is somehow not satisfactory. I used Rprof to make me a profile file. Using summaryRprof I get something like the following: $by.self self.time self.pct total.time total.pct [.data.frame 0.72 10.1 1.84 25.8 inherits 0.50 7.0 1.10 15.4 data.frame 0.48 6.7 4.86 68.3 unique.default 0.44 6.2 0.48 6.7 deparse 0.36 5.1 1.18 16.6 rbind 0.30 4.2 2.22 31.2 match 0.28 3.9 1.38 19.4 [<

Is it possible to monitor and log actual queries made against an Access MDB?

一曲冷凌霜 提交于 2019-11-26 20:13:22
问题 Is it possible to monitor what is happening to an Access MDB (ie. what SQL queries are being executed against it), in the same way as you would use SQL Profiler for the SQL Server? I need logs of actual queries being called. 回答1: The answer depend on the technology used from the client which use MDB. There are different tracing settings which you can configure in HKEY_LOCAL_MACHINE\Software\Microsoft\Jet\4.0\Engines\ODBC http://office.microsoft.com/en-us/access/HP010321641033.aspx. If you use

Perl memory usage profiling and leak detection?

故事扮演 提交于 2019-11-26 19:53:25
I wrote a persistent network service in Perl that runs on Linux. Unfortunately, as it runs, its Resident Stack Size (RSS) just grows, and grows, and grows, slowly but surely. This is despite diligent efforts on my part to expunge all unneeded hash keys and delete all references to objects that would otherwise cause reference counts to remain in place and obstruct garbage collection. Are there any good tools for profiling the memory usage associated with various native data primitives, blessed hash reference objects, etc. within a Perl program? What do you use for tracking down memory leaks? I

Recommendations for C Profilers?

旧城冷巷雨未停 提交于 2019-11-26 19:15:12
问题 Everyone always says to profile your program before performing optimizations but no-one ever describes how to do so. What are your practices for profiling C code? 回答1: Using gcc , I compile and link with -pg (as explained e.g. here), then continue by running the program (according to the principles also suggested at that URL) and using gprof . The tools will vary if you're using different compilers &c, but the URL is still recommended, even then, for the parts that are about general ideas on

Why is the retained heap size of the FinalizerReference class so large in the (memory) Profiler of Android Studio?

耗尽温柔 提交于 2019-11-26 18:39:00
问题 I have read this question about Finalizer's lion share of the heap. It dates from 2011 when the tools were different and the Java class still had a different name (Finalizer vs FinalizerReference). So I think this similar but new question can be asked now. On top of that, the accepted answer to that question boils down to: avoid using finalize()'d objects. Android classes that use finalize() directly or indirectly include Canvas, Paint, Bitmap, Drawable and RenderNode. Good luck avoiding all

How can I profile a SQLAlchemy powered application?

白昼怎懂夜的黑 提交于 2019-11-26 17:29:27
问题 Does anyone have experience profiling a Python/SQLAlchemy app? And what are the best way to find bottlenecks and design flaws? We have a Python application where the database layer is handled by SQLAlchemy. The application uses a batch design, so a lot of database requests is done sequentially and in a limited timespan. It currently takes a bit too long to run, so some optimization is needed. We don't use the ORM functionality, and the database is PostgreSQL. 回答1: Sometimes just plain SQL

What is a good easy to use profiler for C++ on Linux? [closed]

﹥>﹥吖頭↗ 提交于 2019-11-26 15:15:09
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I need to profile some code running C++ on Linux. Can you guys recommend some profilers? 回答1: Use gprof. Just compile with -pg flag (I think (but am not sure) you have to turn of optimizations though.) and use gprof to analyze the gmon.out file that your executable will then produce. eg: gcc -pg -o whatever

Best .NET memory and performance profiler? [closed]

醉酒当歌 提交于 2019-11-26 14:27:57
We are using JetBrains ' dotTrace . What other profiling tools can be recommended that are better for profiling C# Windows Forms applications? McKenzieG1 No. I have tried pretty much every .NET profiler on the market (ANTS, vTune, OptimizeIt, DevPartner, YourKit), and in my opinion dotTrace is the best of the lot. It is one of only two profilers I have used (the other being YourKit) that has low enough overhead to handle a highly CPU-intensive application. If and only if your application is relatively light, I could recommend ANTS Profiler . Its line-by-line stats are sometimes quite useful,