profiler

Find out how much memory is being used by an object in C#?

青春壹個敷衍的年華 提交于 2019-11-30 06:51:09
Does anyone know of a way to find out how much memory an instance of an object is taking? For example, if I have an instance of the following object: TestClass tc = new TestClass(); Is there a way to find out how much memory the instance tc is taking? The reason for asking, is that although C# has built in memory management, I often run into issues with not clearing an instance of an object (e.g. a List that keeps track of something). There are couple of reasonably good memory profilers (e.g. ANTS Profiler) but in a multi-threaded environment is pretty hard to figure out what belongs where,

Android profiler not supported for Kitkat devices/google glass in android studio 3.0

依然范特西╮ 提交于 2019-11-30 06:20:47
From android studio 3.0 Android Monitor turned to Android profiler . But, when using google glass device or other android kitkat devices it's showing below message in android profiler window: Device not supported. Android profiler requires a device with API 21(Lollipop) or higher. What's the solution for Kitkat devices to use the latest Android Profiler once android studio 3.0 available for update in stable version? It seems that the Android Device Monitor (Tools->Android->Android Device Monitor) is still available. I am having difficulty running its memory monitor, although it does seem to

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

穿精又带淫゛_ 提交于 2019-11-30 06:07: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. 回答1: 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. 回答2: In SQL 2005, you first need to show the Database Name column in your trace. The easiest

Where can I get the old, free version of Anjlab's SQL Profiler? [closed]

我只是一个虾纸丫 提交于 2019-11-30 05:59:50
Note: Although this question probably does not fit in with SO's usual programming questions, out of StackOverflow, ServerFault, SuperUser and Programmer's Exchange, only SO has any questions that make mention of this software, which is why I decided to post here. I used to use Anjlab's open source SQL Profiler tool, and found it to be invaluable. Unfortunately, it looks like the software has been converted to a paid version, with the all access to the open source version completely removed. Since this software is mentioned several times in questions here on SO, I was wondering if anyone still

Profiling Ruby Code

半腔热情 提交于 2019-11-30 05:52:16
Besides ruby-prof and and the core Benchmark class, what do you use to profile your Ruby code? In particular, how do you find the bottlenecks in your code? It almost feels like I need to work on my own little tool just to figure out where all the time is being spent in my code. I realize ruby-prof provides this, but the output is frankly very confusing and doesn't make it easy to find out which actual blocks of your own code are the source of the issue (it tells you about which method calls took the most time though). So I'm not really getting as much out of it as I'd like, and haven't really

Easy Lua profiling

老子叫甜甜 提交于 2019-11-30 05:45:07
I just started with Lua as part of a school assignment. I'd like to know if there's an easy way to implement profiling for Lua? I need something that displays allocated memory, variables in use regardless of their type, etc. I've been finding C++ solutions which I have been able to compile successfully but I don't know how to import them to the Lua environment. I also found Shinny but I couldn't find any documentation about how to make it work. There are several profilers available that you can check, but most of them target execution time (and are based on debug hook). To track variables, you

VS2013: “VSP2340: Environment variables were not properly set” even when running from IDE

我们两清 提交于 2019-11-30 05:21:20
问题 I am profiling a C# program from Visual Studio 2013. I go to Analyze -> Performance and Diagnostics to start the wizard. It gives me a choice of profiling method. If I choose the default, CPU sampling, then profiling works and I can see the results. However if I choose the third option, .NET memory allocation, then after my application has finished I see empty results and this error in the Visual Studio output window: VSP2340: Environment variables were not properly set during profiling run

How do you find memory leaks using the Netbeans profiler? [closed]

大兔子大兔子 提交于 2019-11-30 05:08:06
I want to find memory leaks in my java application but I don't know how to use Netbeans profiler to do that. There are several resources on the web that can give you a hand http://www.javapassion.com/handsonlabs/nbprofilermemory/ http://www.netbeans.org/kb/articles/nb-profiler-uncoveringleaks_pt1.html http://kirk.blog-city.com/more_on_memory_leaks.htm In a nutshell, you monitor the "surviving generators", objects that are kept in the memory by your application. When you see that this metric gets out of hand, you can switch to the Memory Live profiling mode, sort the classes by surviving

How to write a profiler?

匆匆过客 提交于 2019-11-30 04:58:31
i would to know how to write a profiler? What books and / or articles recommended? Can anyone help me please? Someone has already done something like this? I would look at those open-source projects first: Eclipse TPTP ( http://www.eclipse.org/tptp/ ) VisualVM ( https://visualvm.dev.java.net/ ) Then I would look at JVMTI (not JVMPI) http://java.sun.com/developer/technicalArticles/Programming/jvmti/ Encouraging lot, aren't we :) Profilers aren't too hard if you're just trying to get a reasonable idea of where the program's spending most of its time. If you're bothered about high accuracy and

Why VisualVM Sampler does not provide full information about CPU load (method time execution)?

被刻印的时光 ゝ 提交于 2019-11-30 02:01:18
The problem is: VisualVM sampler shows call tree by time. For some method sampler shows only "Self time" so I can't see what makes this method slow. Here is an example . How can I increase the depth of profiling? Unfortunately sampling profilers are rather limited when it comes down to in-depth profiling due to a number of reasons: Samplers are limited by the sampling period: For example, VisualVM currently has a minimum sampling period of 20ms. Modern processors can execute several million instructions in that time - certainly more than enough to call several short methods and return from