profiling

Profiling a C or C++ based application that never exits [closed]

时光怂恿深爱的人放手 提交于 2019-12-10 07:14:15
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I have a small doubt regarding profiling applications which never exit until we manually reboot the machine. I used tools like valgrind which talks about memory leaks or bloating of any application which exits after sometime. But is there any tool which can be used to tell about

How to measure developer build time

时光毁灭记忆、已成空白 提交于 2019-12-10 07:09:07
问题 I wanted to write a small app that would sit in my taskbar and monitor what Visual Studio was doing all day. Specifically, what I really want to figure out is how long I spend waiting on Visual Studio to build my solution each day. Could someone point me in the right direction. Is there something in the Visual Studio SDK that would help? 回答1: Since this is just for curiosity, I'd go with an easy option... One potential would be to just make a pre-build and post-build script for your project,

Dealing with heavy profiling of execution times in C++

江枫思渺然 提交于 2019-12-10 04:33:52
问题 I'm currently working on a scientific computing project involving huge data and complex algorithms, so I need to do a lot of code profiling. I'm currently relying on <ctime> and clock_t to time the execution of my code. I'm perfectly happy with this solution... except that I'm basically timing everything and thus for every line of real code I have to call start_time_function123 = clock() , end_time_function123 = clock() and cout << "function123 execution time: " << (end_time_function123-start

NDK profiling showing “.so has no symbols”

狂风中的少年 提交于 2019-12-10 04:27:36
问题 I am doing NDK profiling for my project using android-ndk-profiler-3.1. I have made changes in Android.mk as follows... LOCAL_PATH := $(call my-dir) -include android-ndk-profiler.mk include $(CLEAR_VARS) # Module name ------------------------------------------------------- LOCAL_CFLAGS += -O3 TARGET_ARCH_ABI :=armeabi LOCAL_CFLAGS := -pg LOCAL_STATIC_LIBRARIES := andprof LOCAL_LDLIBS += -llog LOCAL_MODULE := libitv include $(BUILD_SHARED_LIBRARY) Application.mk is as follows... APP_ABI :=

C++ vector array operator high computational cost?

烂漫一生 提交于 2019-12-10 03:34:39
问题 I have always known that the rich abstractions of C++ come with a certain computational overhead but I was under the impression that this overhead would be close to negligible once the correct compiler optimisations were applied. I was curious as to what exactly the magnitude of this overhead would be, so I wrote a simple test to determine this. The test is a templated function which takes a container variable, assigns a value to each element in the container and then sums the values across

C - measuring computing time

こ雲淡風輕ζ 提交于 2019-12-10 03:32:39
问题 is there any simple way how to measure computing time in C? I tried time utility when executed, but I need to measure specific part of a program. Thanks 回答1: You can use the clock function in <time.h> along with the macro CLOCKS_PER_SEC : clock_t start = clock() ; do_some_work() ; clock_t end = clock() ; double elapsed_time = (end-start)/(double)CLOCKS_PER_SEC ; Now elapsed_time holds the time it took to call do_some_work , in fractional seconds. 回答2: You can try the profiler "gprof". More

Apple Instruments has mangled symbols and greyed out symbol names when profiling C++ application

强颜欢笑 提交于 2019-12-10 02:08:26
问题 I'm trying to profile a large C++ application with Apple Instruments. I also wanted to do it WITHOUT building an Xcode project/workspace around my project (since I have an insane amount of dependencies / libraries / makefiles already set up). To do this I launched Instruments from Xcode/Contents/Applications/Instruments and selected a time profiler. For my target, I set it to my binary I wanted to profile. I then set the working directory to where my project files are (and the subsequent dSYM

Visual Studio Profiler showing “[broken]” as function names

北战南征 提交于 2019-12-10 02:03:25
问题 I am trying to profile my c++ dll, but the profiler is not working with me. I would like to see the call tree an so on, but only the stl functions show up, and not all disjoint - when i click on any function, their caller is "[broken]". I don't know if my google skills are just not sufficient, but i can not find any information on what [broken] means, and how to fix it. This is a debug build. I cannot guarantee this is not due to some compiler settings, but i fell like i have tried everything

How to hide miniprofiler?

北慕城南 提交于 2019-12-10 01:44:49
问题 I'm using MVC Mini profiler to check the speed of specific parts of my application, and would like to keep it there just in case something happens later and I may need to check "what's going wrong". It's not a full log set, but it comes pretty in handy to know what's making a page take long. So, my goal is to hide it and have it profile only when the request comes with a specific parameter. However, none of my attempts have worked in the way that I would expect. This has done the trick of not

Allocations tracking library was not loaded in time and unable to see stack trace

孤者浪人 提交于 2019-12-10 01:15:54
问题 For opening Instruments we must profile first then select which template we have to profile memory leaks,allocations,zombies. But still I get the error allocations library was not loaded, and could not see the stack trace also. And could not find the reason of leak in the application As mentioned solution in other links, I am using both simulator (iOS7), and active scheme (iOS7) Xcode Version:Version 5.0.2 (5A3005) Simulator: iOS 7.0.3 (111B508) Mac: OS X Version 10.8.5 Please excuse if any