profiler

How should I profile visual c++ express?

元气小坏坏 提交于 2019-12-19 17:38:53
问题 I've read a lot of the posts here giving profiling advice but I need to ask this. From what I can tell, Visual C++ Express doesn't generate a debugging file that is used by profiler programs. I tried AMD Codeanalyst and it seemed to work fine except none of the routines in my program were identified -- just a lot of "unidentified modules". I'm new to C++. I'm used to the simple profiler used by Python. Simple, I assume, because the language is interpreted. I appreciate any insights. P.S.: Is

How to deactivate some symfony2 debug toolbar elements?

耗尽温柔 提交于 2019-12-19 10:36:07
问题 I am using symfony2 and its debug toolbar is great. However, I've come to install som extra bundles which add some elements and it is now displayed on two levels. How can I do to remove some elements from the toolbar ? For example, I don't need info about my phpversion, not about the route, etc. 回答1: Elements of the toolbar are called DataCollectors , they are special services tagged with data_collector . In the following lines, i will take the Time Datacollector as example. So in order to

How do you get the Python profiler to work?

这一生的挚爱 提交于 2019-12-19 03:10:42
问题 I'm trying to follow the instructions here: http://docs.python.org/2/library/profile.html#module-cProfile Specifically, this part: import cProfile, pstats, io pr = cProfile.Profile() pr.enable() ... do something ... pr.disable() s = io.StringIO() ps = pstats.Stats(pr, stream=s) ps.print_results() I've already determined that print_results is not a real method of the Stats class, nor does it seem to really exist anywhere. Here is my current code: import cProfile, pstats, io def foo(request):

Easy Lua profiling

柔情痞子 提交于 2019-12-18 12:00:58
问题 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. 回答1: There are several profilers available that

SQL Azure Profiling

旧街凉风 提交于 2019-12-18 11:00:25
问题 I read on the MS site that SQL Azure does not support SQL Profiler. What are people using to profile queries running on this platform? 回答1: I haven't got too far playing around with SQL Azure as yet, but from what I understand there isn't anything you can use at the moment. From MS (probably the article you read): Because SQL Azure performs the physical administration, any statements and options that attempt to directly manipulate physical resources will be blocked, such as Resource Governor,

how do you profile java source with intellij idea editor? [closed]

流过昼夜 提交于 2019-12-18 10:21:24
问题 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 3 years ago . I know that Netbeans has something of an "integrated" profiler, for instance you can run unit tests and use it to analyze and find what is slowing them down, where bottlenecks are. Is it possible to profile code within IntelliJ IDEA editor? 回答1: You can try the free VisualVM profiler integration via a plug-in.

Best and safest Java Profiler for production use? [closed]

佐手、 提交于 2019-12-18 10:10:15
问题 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 2 years ago . I'm looking for a Java Profiler for use in a very high demand production environment, either commercial or free, that meets all of the following requirements: Lightweight integration with code (no recompile with special options, no code hooks, etc). Dropping some profiler specific .jars alongside the application

How to hook up SqlDataAdapter to profile db operations with mvc mini profiler

人盡茶涼 提交于 2019-12-18 08:53:57
问题 I looked up How could I instantiate a Profiled DataAdapter to use with MVC MINI PROFILER? but this also did not answer my question. I have some code like this in SqlDatasource class - protected SqlCommand sqlCommand; public SqlDatasource(String query, String connectionString) : this(connectionString) { this.sqlCommand.CommandText = query; } public DataTable getResults() { DataTable table = new DataTable(); SqlDataAdapter adapter = new SqlDataAdapter(this.sqlCommand); SqlCommandBuilder

Is there a memory profiler for python2.7?

ⅰ亾dé卋堺 提交于 2019-12-18 05:05:33
问题 I needed to check the memory stats of objects I use in python. I came across guppy and pysizer, but they are not available for python2.7. Is there a memory profiler available for python 2.7? If not is there a way I can do it myself? 回答1: You might want to try adapting the following code to your specific situation and support your data types: import sys def sizeof(variable): def _sizeof(obj, memo): address = id(obj) if address in memo: return 0 memo.add(address) total = sys.getsizeof(obj) if

Get time of execution of a block of code in Python 2.7

孤人 提交于 2019-12-17 17:24:11
问题 I would like to measure the time elapsed to evaluate a block of code in a Python program, possibly separating between user cpu time, system cpu time and elapsed time. I know the timeit module, but I have many self-written functions and it is not very easy to pass them in the setup process. I would rather have something that could be used like: #up to here I have done something.... start_counting() #or whatever command used to mark that I want to measure #the time elapsed in the next rows #