profiling

Why is this piece of Javascript code so slow?

隐身守侯 提交于 2019-12-24 02:55:14
问题 I have this piece of Javascript code, which takes about 600 ms on every call in Internet Explorer. The time taken in other browsers is negligble. var _nvs_currentTab; var _nvs_zoomfield; var _nvs_centerfield; var _nvs_globsearch; var _nvs_category; var _nvs_favsonly; var _nvs_wishonly; var _nvs_friendfavsonly; var _nvs_newitemsonly; var _nvs_globsearchOld; var _nvs_catOld; var _nvs_favsonlyOld; var _nvs_wishonlyOld; var _nvs_friendFavsonlyOld; var _nvs_newItemsOnlyOld; function saveState() {

Accidental Complexity in OpenSSL HMAC functions

空扰寡人 提交于 2019-12-24 02:49:09
问题 SSL Documentation Analaysis This question is pertaining the usage of the HMAC routines in OpenSSL. Since Openssl documentation is a tad on the weak side in certain areas, profiling has revealed that using the: unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, const unsigned char *d, int n, unsigned char *md, unsigned int *md_len); From here, shows 40% of my library runtime is devoted to creating and taking down HMAC_CTX 's behind the scenes. There are also two additional

When profiling Cython Code, what is `stringsource`?

两盒软妹~` 提交于 2019-12-24 02:33:40
问题 I have a heavy Cython function that I'm trying to optimize. I am profiling per this following tutorial http://docs.cython.org/src/tutorial/profiling_tutorial.html. My profile output looks like this: ncalls tottime percall cumtime percall filename:lineno(function) 1 7.521 7.521 18.945 18.945 routing_cython_core.pyx:674(resolve_flat_regions_for_drainage) 6189250 4.964 0.000 4.964 0.000 stringsource:323(__cinit__) 6189250 2.978 0.000 7.942 0.000 stringsource:618(memoryview_cwrapper) 6009849 0

IE10 freezes with jquerymobile application

耗尽温柔 提交于 2019-12-24 01:46:05
问题 I have a jQueryMobile website that is freezing up on IE10 (all other browsers appear to be okay). The behavior is strikingly similar to whats recorded here (https://github.com/jquery/jquery-mobile/issues/5695). I've taken a profile trace of the app at the time it happens, and it looks a bit like this (ordered by Inclusive time). Here's a link to the full csv export of the profile (http://db.tt/JFTFyeGP) handle 135,142 68,758.53 1,018.14 https://webstore.revtrak.com/Portal/Scripts/jquery-1.9.1

Why doesn't valgrind massif report any function names or code references?

喜夏-厌秋 提交于 2019-12-24 01:45:31
问题 I have a program that is unexpectedly using a large amount of heap (about 3GB). I ran it through valgrind memcheck which reported no leaks, claiming that all the heap memory is still reachable. So I rebuilt all my libraries with debug options, and ran the prog through valgrind massif. I am using Valgrind-3.8.1 which I just downloaded and built on my box today. The command line was: valgrind --tool=massif myprog Valgrind produced no errors or warnings. The resulting output file is reporting

Memory profiling tool for Delphi?

廉价感情. 提交于 2019-12-24 00:58:30
问题 I set up a project and ran it, and looked at it in Process Explorer, and it turns out it's using about 5x more RAM than I would have guessed, just to start up. Now if my program's going too slowly, I hook it up to a profiler and have it tell me what's using all my cycles. Is there any similar tool I can hook it up to and have it tell me what's using all my RAM? 回答1: AQTime can help with that too. 回答2: What figures are you using from Process Explorer? "Memory Use" in Windows is not a

oprofile unable to produce call graph

百般思念 提交于 2019-12-23 23:15:10
问题 I am trying to use oprofile to generate call graph. Compiler is g++, platform is linux x86-64, linker is gfortran C++ code is compiled with -fno- omit-frame-pointer. oprofile is started with --callgraph=25. report I run with --callgraph. the call graph is produced but it's only includes self time, which is not much use what am I missing? 回答1: Check if opcontrol --status does not have Call-graph depth: 0 in its output. If it does, stop profiling, do opcontrol --callgraph=<desired call stack

difference between code coverage and profiling

醉酒当歌 提交于 2019-12-23 23:08:59
问题 What is difference between code code coverage and profiling. Which is the best open source tool for code coverage. 回答1: Coverage is important to see which parts of the code have not been run. In my experience it has to be accumulated over multiple use cases, because any single run of the software will only use some of the code. Profiling means different things at different times. Sometimes it means measuring performance. Sometimes it means diagnosing memory leaks. Sometimes it means getting

Java Profiling: Private Property Getter has Large Base Time

流过昼夜 提交于 2019-12-23 20:15:00
问题 I'm using TPTP to profile some slow running Java code an I came across something interesting. One of my private property getters has a large Base Time value in the Execution Time Analysis results. To be fair, this property is called many many times, but I never would have guessed a property like this would take very long: public class MyClass{ private int m_myValue; public int GetMyValue(){ return m_myValue; } } Ok so there's obviously more stuff in the class, but as you can see there is

Calculating the factorial without trailing zeros efficiently?

大憨熊 提交于 2019-12-23 12:54:00
问题 I'm trying to improve the running time of the factorial calculation of the large number. The first Code which simply loop over and multiplies. def calculate_factorial_multi(number): ''' This function takes one agruments and returns the factorials of that number This function uses the approach successive multiplication like 8! = 8 * 7 * 6 * 5 * 4 * 3 * 2 * 1 ''' ''' If 0 or 1 retrun immediately ''' if number == 1 or number == 0: return 1 result = 1 # variable to hold the result for x in xrange