I have a new blog post at embeddedrelated.com describing heapprof, a 250-line heap profiler (C+Python) working out of the box on Linux, and easy to port/tweak.
How to make a heap profiler
May 23rd, 2014 | software
a substitute for anaesthesia
May 23rd, 2014 | software
I have a new blog post at embeddedrelated.com describing heapprof, a 250-line heap profiler (C+Python) working out of the box on Linux, and easy to port/tweak.
© Proper Fixation - a WordPress blog, Copyblogger theme design by Chris Pearson, patched by Yossi Kreinin
72 comments ↓
You can rewrite
reduce(operator.or_, [set(block.stack) for block in blocks])
as{x for block in blocks for x in block.stack}
which is both shorter and more obvious to understand IMO.Actually, yeah – thanks, changed it.
You seem to have switched the `for`s around. I agree the order you used would be more intuitive, but that's not the python syntax unfortunately:
>>> [a for a in b for b in [[1]]]
Traceback (most recent call last):
File "", line 1, in
NameError: name 'b' is not defined
>>> [a for b in [[1]] for a in b]
[1]
Um, yeah… fixed.
Why do you compile C without optimizations?
Erm… do you ask because there's a bug exposed under -O3 or some such?
This looks cool (and inspires me to take another look at adding backtraces to our memory allocation). One question, though: isn't pulling in threads – and thus possibly a thread-aware standard library, etc. – scary?
If your app doesn't have threads you don't need to worry about it. If it does you already have a thread-aware stdlib etc. – and the code I spent on threading inside the profiler is not that much code. So I don't think it's particularly troublesome.
Cheers, here from yanex, i enjoyng this, i will come back again.
5/15/2019 Appreciate yosefk.com– extremely easy to navigate and much to consider!
You ought to be a part of a contest for one of the highest quality websites online.
I'm going to highly recommend this web site!
Excellent way of explaining, and nice paragraph
to get facts concerning my presentation topic,
which i am going to deliver in institution of higher education.
When I initially commented I clicked the "Notify me when new comments are added" checkbox and now each time
a comment is added I get three e-mails with the same comment.
Is there any way you can remove me from that service? Bless you!
Wow, this piece of writing is nice, my younger sister is analyzing
these things, so I am going to tell her.
Pretty! This was an extremely wonderful post.
Thank you for providing this info.
yosefk.com does it yet again! Very thoughtful site and a good post. Keep up the good work!
Yes! Finally something about gamefly free trial.
It's going to be end of mine day, but before ending I am reading
this enormous piece of writing to improve my know-how.
You really make it seem so easy with your presentation but I find this topic to be really something that I think I would
never understand. It seems too complex and
extremely broad for me. I am looking forward for
your next post, I will try to get the hang
of it!
Link exchange is nothing else however it is simply placing the other person's website link on your page at appropriate place and
other person will also do similar for you.
It is truly a nice and helpful piece of info.
I am glad that you shared this useful information with us.
Please stay us informed like this. Thank you for sharing.
I all the time used to study article in news papers but now as I am
a user of internet therefore from now I am using net for content, thanks to
web.
Yesterday, while I was at work, my sister stole my apple ipad and tested to see if it can survive a
twenty five foot drop, just so she can be a youtube
sensation. My apple ipad is now broken and she has 83 views.
I know this is entirely off topic but I had to share it with someone!
Ahaa, its fastidious dialogue concerning this paragraph here at this weblog, I have read all that, so
now me also commenting at this place.
Hi everyone, it's my first visit at this web page, and paragraph is in fact fruitful in support of me, keep up posting these types of content.
yahoo got me here. Thanks!
Very interesting points you have remarked, appreciate it for putting up.
Hello, google lead me here, keep up great work.
Good, this is what I was searching for in google
If some one wants to be updated with hottest technologies
then he must be visit this web site and be up to date everyday.
Enjoyed reading through this, very good stuff, thankyou .
Deference to op , some superb selective information .
Hi, bing lead me here, keep up nice work.
Ha, here from bing, this is what i was looking for.
stays on topic and states valid points. Thank you.
I conceive you have mentioned some very interesting details , appreciate it for the post.
Respect to website author , some wonderful entropy.
Me like, will read more. Thanks!
I love reading through and I believe this website got some genuinely utilitarian stuff on it! .
Thanks for this web. I definitely agree with what you are saying.
I kinda got into this post. I found it to be interesting and loaded with unique points of interest.
Can you tell us more about this? I'd love to find out some additional information.
Very interesting points you have remarked, appreciate it for putting up.
I like this website its a master peace ! Glad I found this on google .
I am glad to be one of the visitors on this great website (:, appreciate it for posting .
Great, this is what I was browsing for in yahoo
Thank You for this.
Deference to op , some superb selective information .
Parasite backlink SEO works well :)
I like this site, useful stuff on here : D.
You got yourself a new follower.
bing bring me here. Thanks!
Intresting, will come back here more often.
Awesome, this is what I was browsing for in google
I truly enjoy looking through on this web site , it holds superb content .
I dugg some of you post as I thought they were very beneficial invaluable
What's up it's me, I am also visiting this web site regularly, this web page is
actually fastidious and the users are in fact sharing good
thoughts.
Cheers, here from google, i enjoyng this, I come back again.
Prix Du Cialis En Pharmacie En France Mail Order Stendra Internet Cod Only Next Day Delivery [url=http://hxdrugs.com]п»їcialis[/url] Generique Cialis Meilleur Prix Dilantin
hello there and thank you for your info – I have certainly picked up
something new from right here. I did however expertise some technical issues using this site, as
I experienced to reload the web site a lot of
times previous to I could get it to load properly.
I had been wondering if your web host is OK? Not that I'm complaining, but slow loading instances times will often affect your placement in google
and can damage your high quality score if advertising and marketing with Adwords.
Well I'm adding this RSS to my email and could look out for a lot more of
your respective exciting content. Make sure you update this again soon.
What's Happening i am new to this, I stumbled upon this I've
discovered It positively helpful and it has helped me out loads.
I am hoping to give a contribution & aid different
customers like its aided me. Great job.
Skyking, Skyking, this message is your next piece of data. Please contact the agency at your convenience. No further information until next transmission. This is broadcast #5771. Do not delete.
Wow, fantastic blog layout! How long have you been blogging for?
you make blogging look easy. The overall look of your site
is great, as well as the content!
Cialis Ou Viagra Forum [url=http://xzanax.com][/url] Viagra E Cardioaspirina
Deference to op , some superb selective information .
Stunning story there. What occurred after?
Thanks! plenty of fish natalielise
I really enjoy examining on this website , it has got great goodies .
I'm not sure where you are getting your info, but good topic.
I needs to spend some time learning more or understanding
more. Thanks for wonderful information I was looking for this information for my mission.
What's up to all, the contents existing at this site are in fact amazing for people experience, well, keep up the nice work fellows.
Enjoyed reading through this, very good stuff, thankyou .
I truly enjoy looking through on this web site , it holds superb content .
Respect to website author , some wonderful entropy.