profiling

Android debug traces do not contain application specific method calls

谁说胖子不能爱 提交于 2019-12-13 02:18:25
问题 I am trying to generate trace files for applications using the Debug.startMethodTracing (on the activity onCreate) and Debug.stopMethodTracing (on the activity onDestroy) according to the following documentation http://developer.android.com/tools/debugging/debugging-tracing.html#creatingtracefiles. I run the application on a physical device and it successfully creates the trace file. Later I run dmtracedump on them to generate a call-stack diagram, but it does not contain any of my

Profiling shows slow performance when explicitly loading related entities

烈酒焚心 提交于 2019-12-13 02:06:18
问题 I have tried to profile my wpf application concentrating on non-visual parts that do some calculations and evaluations, I have used Visual Studio 2012 bulit in profiler. There is quite a lot of code (tens of thousands of lines) in that application, so I was surprised that it showed 46.3% time spent on a single line: db.Entry(qzv.ZkouskaVzorku).Collection(p => p.VyhodnoceniZkouskies).Load(); This line should just explicitly load related entities as specified here. I have checked this line

How to profile the number of global memory transactions for cuda kernels?

妖精的绣舞 提交于 2019-12-13 01:28:17
问题 How to enable profiling for "uncached_global_load_transaction" counter in cuda command-line profiler? 回答1: The command line profiler is controlled using the following environment variables - COMPUTE_PROFILE: is set to either 1 or 0 (or unset) to enable or disable profiling. COMPUTE_PROFILE_CONFIG: is used to specify a config file for enabling performance counters in the GPU and various other options. COMPUTE_PROFILE_LOG: is set to the desired file path for profiling output. In your case you

How to profile Domino Agents (AMgr) with YourKit?

孤者浪人 提交于 2019-12-12 22:15:21
问题 Since I am having issues with a large Domino Agent, I wanted to be able to profile it. I've heard lots of lovely things about Yourkit, and followed the instructions in David Leedy's video: http://notesin9.com/index.php/2012/11/29/notesin9-091-xpages-memory-profiling-part-1/ I have created a text file, YourKitOptionsFile.txt with the following line: agentpath:C:\ProgramData\YourKit\yjpagent_13082_64_603ABE4D.dll= disablestacktelemetry,disableexceptiontelemetry,delay=10000,listen=192.168.1.40

Hibernate Cache1 OutOfMemory with OpenSessionInView

大兔子大兔子 提交于 2019-12-12 21:25:38
问题 I've got a Vehicle entity, with a Vehicle DTO. I use OpenSessionInView with Stripes. In my Stripes action bean, i need to generate a csv containing the data for about 50000 Vehicles. Thus, as a Stripes developer told me to do, i write the file to the outputstream in the following method: StreamingResolution() {...}.stream(HttpServletResponse) I have a service that take some pagination information, load a part of the vehicles and transform them into DTO's. These dto's are returned to the view

Strange behavior of memory when i make profiling

本小妞迷上赌 提交于 2019-12-12 17:39:01
问题 I have a strange problem when i make profiling. I explain, in figure belows, we can see clairly that the greatest object take only 35mo . see this figure : . But when i verify a memory used at the same time i remark that it exceed 500mo Some one can explain me why the greatest object take maximum 35mo while the heap used exceed 500 for the same time ? and how calculate heap used ? 回答1: Probably you are not profiling all object creations. One of the standard profiling settings in Netbeans

Tracking down the source of .NET 4.0 Induced GC

为君一笑 提交于 2019-12-12 16:19:37
问题 I'm using PerfMonitor.exe ( http://bcl.codeplex.com/wikipage?title=PerfMonitor ) to track down some .NET performance issues of a .NET 4.0 app that uses some third party libraries some of which are native code. When I run the Perfmonitor GCTime report, it lists the individual GC's and classifies them in several ways. One column in the report is called "Reason". Some GC's have Reason="Induced" and others have Reason="SmallAlloc". I assume that the GCs labelled "SmallAlloc" are caused by regular

How do I set Environmental variable for my application while profiling it under visual studio 2008

会有一股神秘感。 提交于 2019-12-12 16:13:22
问题 I have an application. I compile it using vs2008 team system. To run this app some certain environmental variables need to be set, such as SYSTEM_MODULE_PATH. My app loads system modules from there. Without this variable it wont run. So When I profile it, I want to set this variable so that my application runs properly. Now my question is, Where do I set this variable? 回答1: Start -> Control Panel -> System -> advanced Tab -> Environment variables or CMD -> SET [variable=[string]] 回答2: I fixed

How to improve accuracy of profiling

旧时模样 提交于 2019-12-12 15:40:41
问题 I want to improve the running time of some code. In order to that I first time the running time of all relevant code, using code like this: before:= rdtsc; myobject.run; after:= rdtsc; Then I zoom in and time a relevant part, like so: procedure myobject.part; begin StartTime:= rdtsc; ... EndTime:= rdtsc; inc(TotalTime, (EndTime- StartTime)); end; I have some code to copy paste the timings into Excel, a typical outcome would look like: (the 89.8% and 10.2% adding up to 100% is a coincidence

WPF PathGeometry rendering

烈酒焚心 提交于 2019-12-12 15:18:23
问题 I have a PathGeometry containg a single polyline, and at a fixed interval I add a new point to the line (to plot a waveform). When using the Perforator tool I can see that every time I add a point to the line, WPF marks the entire PathGeometry as 'dirty', causing the entire shape to be re-rendered. I hoped it would only redraw the single pixel. Is there any way to accomplish that? 回答1: The short answer is No.. WPF is correct in dirtying the entire geometry upon a change as it take into