hawkhsieh / gperftools-httpd Goto Github PK
View Code? Open in Web Editor NEWThis project forked from awesomeleo/gperftools-httpd
http://gperftools-httpd.googlecode.com/svn/trunk/
This project forked from awesomeleo/gperftools-httpd
http://gperftools-httpd.googlecode.com/svn/trunk/
This code is not from Google. It is a copy of thttpd 2.25b downloaded from http://www.acme.com/software/thttpd/thttpd-2.25b.tar.gz but then adapted to be a tiny minimal HTTP server that can be linked into any program to serve profiling information for google-perftools's pprof. It has been chopped up significantly compared to the original. After running make (which assumes you have the google-perftools libraries installed in /usr/local/lib or a standard place like /usr/lib), you can profile an arbitrary program with: LD_PRELOAD=/usr/local/lib/libghttpd-preload.so ./a.out and then while it is running, execute: pprof a.out http://localhost:9999/pprof/heap The preload library starts the HTTP server at the first call to malloc. Alternately, you can link with -lghttpd and call ghttpd() during program initialization (e.g., in main). You can change the port number by setting the environment variable GHTTPPORT: GHTTPPORT=12345 LD_PRELOAD=libghttpd-preload.so ./a.out Russ Cox 18 October 2006 [email protected]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.