profiling

.Net Profiling API approaches

余生长醉 提交于 2019-12-10 14:22:17
问题 I have a feeling I may already know the answer to this question, but I'll ask it anyway. Are there any better ways of using the .Net Profiling API than the COM/Managed C++ route? My reluctance to follow the suggested COM approach is as such: Effort, it's a lot of legwork to get started Don't like the magic involved in hooking up the C++ dlls, not easy to redistribute with projects Feels hard to unit test Don't want to behavior in C++. I could create an interop layer, but that's even more work

Profile Eclipse RCP with VisualVM

*爱你&永不变心* 提交于 2019-12-10 13:32:03
问题 I am developing an application based on Eclipse RCP. I want to profile specific methods in my application: dropping an element and refreshing sections. I successfully connected VisualVM launch plugin to Eclipse. After my application ran I executed Profiler from VisualVM and dragged/refreshed some stuff in the application being profiled. At the end, I did not see corresponding methods in the call stack. I cannot find any methods which are responsible for my stuff and I can't do anything. Why

-finstrument-functions doesn't work with dynamically loaded g++ shared objects (.so)

谁说胖子不能爱 提交于 2019-12-10 12:59:30
问题 I am testing -finstrument-functions with g++ shared object (.so) files on Ubuntu these days. I found a strange behavior that -finstrument-functions seems to work only if the library is statically linked. If I link to the library with dlopen/dlsym etc., the functionality of the code still works, but it won't call the __cyg_profile* functions. Here are some codes to quickly reproduce the problem: MyLib.h #ifndef __MYLIB_H__ #define __MYLIB_H__ class MyLib { public: void sayHello(); }; #endif

How to measures script execution and *parsing* time?

泪湿孤枕 提交于 2019-12-10 12:58:45
问题 As far as I know, scripts are downloaded and executed synchronously in javascript. Hence if we write the following code: <script type='text/javascript'>console.time('core')</script> <script type='text/javascript' src="guicore.js"></script> <script type='text/javascript'>console.timeEnd('core')</script> we'll see in console total time for download, parse and execute js. How we can exclude parsing time? Just add similar file, but with all code commented out. More or less, this technique should

What the difference between Time and Time(CPU) in VisualVM

强颜欢笑 提交于 2019-12-10 12:44:28
问题 I was using VisualVM to find where all the time was being spent for a particular call. I found that most the time was in a database call, but the profier shows that 85% of the time was java.lang.Object and only 15% in the DB Call. Am I reading something wrong? The columns with data are Time, Time (CPU), Invocations. 回答1: It looks like most of the time is spend in Object.wait(). The difference between Time and Time(CPU) is described in the tooltip for particular column. Time(CPU) is an

Performance profiling a .net website with shared,remote hosting

点点圈 提交于 2019-12-10 12:28:33
问题 Having performance issues with my website. I'm relatively new to .net, although I've learned an awful lot over the last few months! I posted this question last night Improving performance when working on Images with ASP.NET in VB From which a comment was posted which got me thinking, and Googling this morning. I'm unclear on how I would actually got about 'performance profiling' my site. I've seen that there are tools built into visual studio if I can replicate the entire site locally, but I

SQL Server Profiler: How to inspect/understand the duration for the Audit Logout event in more detail?

橙三吉。 提交于 2019-12-10 11:36:21
问题 I am profiling some MS SQL queries with the SQL Server Profiler for my C# Application that I develop with Visual Studio and IIS Express: The duration that is given for the event "Audit Logout" (16876 ms) is the total time between login and logout. The duration for the query is only 60 ms. Login/Logout events are related to the setting up / tearing down. From What is "Audit Logout" in SQL Server Profiler? I would like to understand the time difference of 16816 ms (= 16876 ms - 60ms) in more

Library for collecting PC hardware/OS info

心已入冬 提交于 2019-12-10 11:15:04
问题 Are there any free or opensource library for collecting PC hardware and operating system information like PC Wizard's System Information Dev Kit does? I would like to prefer .NET assembly or native dll (so I can use it's functions through PInvoke), but Java one is fine too. 回答1: Have you tried WMI You can obtain probably all the information you want about the hardware and OS. 来源: https://stackoverflow.com/questions/12365380/library-for-collecting-pc-hardware-os-info

Ubuntu 16.04 LTS - How to enable symbols for the perf tool

心不动则不痛 提交于 2019-12-10 10:37:35
问题 I'm trying to gather some profiling data for my app and I run the perf tool and Flame Graphs for that. I'm referring the instructions provided in this slideshare: https://www.slideshare.net/brendangregg/java-performance-analysis-on-linux-with-flame-graphs Below are the commands that I'm running: 1. sudo perf record -F 997 -a -g 2. sudo perf script > out.stacks01 When I run the second command, it displays below messages: Failed to open /tmp/perf-9931.map, continuing without symbols. no symbols

react-native profiling doesn't show JS thread

主宰稳场 提交于 2019-12-10 10:05:10
问题 I followed the official guide to profile my JS: https://facebook.github.io/react-native/docs/android-ui-performance.html But when I get the results, there's no js-related code I can look at: Any idea what happened ? The interface is pretty sluggish, cusuming 100% of a CPU, but I get no infos why. EDIT: looks like using the latest react-native version could solve that, I'm using 0.30.0 and looks like some related changes were introduced around 0.34.0 回答1: You can simply use the chrome profiler