profiling

How to measure I/O time for a java application running on ubuntu?

◇◆丶佛笑我妖孽 提交于 2019-12-10 19:44:35
问题 I would like to gather amount of time my application is waiting for I/O. I am running this java application on ubuntu/linux. I am using yourkit profiler. Suggest if there any other profiling tool for measuring I/O time. 回答1: Youtkit is excellent for having a zoom microscope in your application. In these situations it often pays to also look from the outside to a macroscopic view and take some very rough measurements to see if you are CPU bound or IO bound. If your app running at full throttle

x86 assembly instruction execution count

瘦欲@ 提交于 2019-12-10 18:47:34
问题 Hello everyone I have a code and I want to find the number of times each assembly line executed. I dont care whether through profiling or emulation, yet I want high precision results. I came across a forum once that gave some scripting code to do so, yet I lost the link. Can anyone help me brainstorm some ways to do so? Regards Edit : Okey I think I am halfway there. I have done some research on the BTS (Branch Trace Store) provided by Intel Manual 3A section 16.4.5 according to one the posts

Should I use matching (gcc) compiler optimization flags when profiling the code?

不羁的心 提交于 2019-12-10 17:49:52
问题 I am using -O3 when compiling the code, and now I need to profile it. For profiling, there are two main choices I came accross: valgrind --tool=callgrind and gprof. Valgrind (callgrind) docs state: As with Cachegrind, you probably want to compile with debugging info (the -g option) and with optimization turned on. However, in the C++ optimization book by Agner Fog, I have read the following: Many optimization options are incompatible with debugging. A debugger can execute a code one line at a

jvisualvm: Stuck on “Loading Heap Dump…” screen

前提是你 提交于 2019-12-10 17:36:30
问题 I am using jdk64 and my java version is "1.6.0_24". My tomcat is running with -Xmx7196m, and jvisualvm is running with -J-Xms2048m -J-Xmx3072m. I took a heap dump of my tomcat java process and size of my .hprof file is around 5.5 GB. When I try to open this heap dump, it just stuck on Loading Heap Dump... screen. I also looked at the heap consumption of VisualVM while it is trying to open the heap dump, but that goes around 500MB only. NOTE: I did look at jvisualvm: Stuck on “Loading Heap

Profiling asp.net core 2 (web api) with angular 5

一曲冷凌霜 提交于 2019-12-10 17:12:41
问题 I am looking for Profiling solutions for following environment, could someone suggest please. ASP.NET Core 2 on net471 EntityFramework 6.2.0 Angular 5.0.0 I looked into MiniProfiler & Glimpse . Glimpse has not been upgraded for Core 2.0 yet. MiniProfiler works with Core 2 but does not work properly for SPA. Someone has tried to extend http of Angular 2 but Angular 5 now uses HttpClient & interceptor I think. Also I could not figure out how to profile DataContext (System.Data.Linq) for SQL

c# visual studio 2017 CPU profiling out of memory exception

落爺英雄遲暮 提交于 2019-12-10 17:12:15
问题 I've got a long running c# application that I'm profiling in visual studio 2017 community edition. Runs for about 2/3 hours before I stop the profiling (and application) to see the CPU usage. However I can see when its building the reports the memory usage increases by 3GB then throws an out of memory exception. Profiling started. Profiling process ID 7312 (test). Starting data collection. The output file is C:\Users\jamie\Source\Repos\test(1).vspx Profiler stopping. Stopping data collection.

How to Turn On/Off Xdebug Profiling at Runtime?

假装没事ソ 提交于 2019-12-10 17:12:03
问题 I am currently using xdebug and experimenting with profiling and viewing w/ KCacheGrind. I have it set to only operate on trigger, i.e. passing XDEBUG_PROFILE=1 via GET . There is a lot of noise in the output concerning the framework I am using and would like to be able to specifically profile a chunk of my code, like a controller, rather than the entire request. Am I able to have xdebug profiling turned off until I choose to turn it on, like in a controller, and then turn it back off when I

Why doesn't the -baseline option of jhat work?

℡╲_俬逩灬. 提交于 2019-12-10 16:01:34
问题 How come every object appears to be marked new, instead of just objects that are in the second snapshot but not in my baseline snapshot? Looking around online, I see some suggestions that I need to use hprof instead of jmap to make my memory dumps, but it appears that hprof generates dumps in exactly the same format. This is JDK 1.6.0_14; I have tried on both Windows and UNIX. 回答1: jhat -baseline indeed won't work with dumps produced by jmap . I'm not certain, but I believe this is because

How much does Xdebug profiling inflate the real execution time?

ぐ巨炮叔叔 提交于 2019-12-10 15:14:19
问题 I have an Xdebug cachegrind file in webgrind showing that 1061 different functions were called in 5865 milliseconds - when I disable profiling the script doesn't take that many milliseconds - I realize I could work this out but does anyone know the approximate percentage increase in execution time caused by Xdebug profiling? Thanks 回答1: It's really difficult to say a specific number or percentage since that depends in the type and quantity of function calls, variables used and options you set

Using gprof with sockets

萝らか妹 提交于 2019-12-10 14:35:51
问题 I have a program I want to profile with gprof. The problem (seemingly) is that it uses sockets. So I get things like this: ::select(): Interrupted system call I hit this problem a while back, gave up, and moved on. But I would really like to be able to profile my code, using gprof if possible. What can I do? Is there a gprof option I'm missing? A socket option? Is gprof totally useless in the presence of these types of system calls? If so, is there a viable alternative? EDIT: Platform: Linux