profiling

How to profile performance for a single unit test using Visual Studio 2013 Professional?

这一生的挚爱 提交于 2019-12-18 14:01:03
问题 I would like to run the Visual Studio 2013 Professional edition profiler for a single automated test. It is not clear from other questions here on how to do so using the Professional edition. Is this possible and if so, how? 回答1: Ok, so I figured out how to do it for profiler sampling (not instrumentation)... Launch Visual Studio (VS) and open the project that has the automated test that you would like to profile. Put a breakpoint on the first line of the test that will be profiled. Debug the

How to properly delete a box2d body in version: Box2dWeb-2.1.a.3, Box2D_v2.3.1r3? Box2D bug?

ε祈祈猫儿з 提交于 2019-12-18 13:31:32
问题 Update Since the problem has been found I've also find out that Box2D for web is leaking on every side :/ To show this I made a simple circle moving in a static polygon and here is the result after some time. Notice how the following items are leaking as I'm not creating any body or changing the world in any way: b2Vec2 Features b2ManifoldPoint b2ContactID b2Manifold b2ContactEdge b2PolyAndCircleContact Array ... Original post I have a problem because I'm profiling my game and the garbage

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

Is clock_gettime() adequate for submicrosecond timing?

若如初见. 提交于 2019-12-18 11:49:08
问题 I need a high-resolution timer for the embedded profiler in the Linux build of our application. Our profiler measures scopes as small as individual functions, so it needs a timer precision of better than 25 nanoseconds. Previously our implementation used inline assembly and the rdtsc operation to query the high-frequency timer from the CPU directly, but this is problematic and requires frequent recalibration. So I tried using the clock_gettime function instead to query CLOCK_PROCESS_CPUTIME

How use callgrind to profiling only a certain period of program execution?

廉价感情. 提交于 2019-12-18 11:45:43
问题 I want to use valgrind to do some profiling, since it does not need re-build the program. (the program I want to profile is already build with “-g") But valgrind(callgrind) is quite slow ... so here's what I to do: start the server ( I want to profile that server) kind of attach to that server before I do some operation on server, start collect profile data after the operation is done, end collecting profile data analyze the profiling data. I can do this kind of thing using sun studio on

Profiling DLL/LIB Bloat

ぃ、小莉子 提交于 2019-12-18 11:40:16
问题 I've inherited a fairly large C++ project in VS2005 which compiles to a DLL of about 5MB. I'd like to cut down the size of the library so it loads faster over the network for clients who use it from a slow network share. I know how to do this by analyzing the code, includes, and project settings, but I'm wondering if there are any tools available which could make it easier to pinpoint what parts of the code are consuming the most space. Is there any way to generate a "profile" of the DLL

How many Datastore reads consume each Fetch, Count and Query operations?

我与影子孤独终老i 提交于 2019-12-18 11:08:27
问题 I'm reading on Google App Engine groups many users (Fig1, Fig2, Fig3) that can't figure out where the high number of Datastore reads in their billing reports come from. As you might know, Datastore reads are capped to 50K operations/day, above this budget you have to pay. 50K operations sounds like a lot of resources, but unluckily, it seems that each operation (Query, Entity fetch, Count..), hides several Datastore reads. Is it possible to know via API or some other approach, how many

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,

What are some resources I can use to learn profiling/optimizing?

大憨熊 提交于 2019-12-18 10:48:09
问题 I just inherited a C# project that runs way to slow and will have to start optimizing it. What I wanted to do first is learn a little more about profiling/optimizing since I didnt have to do it before. So the question is where do I start, what books/blogs/articels can I read? I do know OF the .net profilers like ANTS profiler and so on, but I have no idea how to use them efficiently. I have not really used it, just let it run on a few sample apps to play around with the output. 回答1: There are

How do you profile your code?

送分小仙女□ 提交于 2019-12-18 10:24:50
问题 I hope not everyone is using Rational Purify. So what do you do when you want to measure: time taken by a function peak memory usage code coverage At the moment, we do it manually [using log statements with timestamps and another script to parse the log and output to excel. phew...) What would you recommend? Pointing to tools or any techniques would be appreciated! EDIT: Sorry, I didn't specify the environment first, Its plain C on a proprietary mobile platform 回答1: You probably want