athemathmo / cpuprofiler Goto Github PK
View Code? Open in Web Editor NEWRust bindings to google's cpuprofiler
Rust bindings to google's cpuprofiler
Hi,
i took the version (0.0.2
) from the README.md
, after compiling and running my project i got an error regarding non-existing file, i searched through issues, i found the PR that fixed that, i then checked out the newest version on crates.io and finally installed 0.0.3
which works just fine.
I'd suggest bumping the version in the README file to avoid confusion for other people. Do you want to open a PR about that, or would you rather do that yourself?
Btw i find your crate immensely helpful in my current project :)
Hi!
I'm trying to get this working on OS X 10.11.6. It seems to build and work, but no function names are included in the results. Everything is collapsed under mandelbrot
as a single entry (see below).
Any way to use this on OS X, or is it Linux only?
Thanks!
Matts-MacBook-Pro:mandelbrot holden$ go tool pprof target/debug/mandelbrot cpu.prof
Local symbolization failed for libsystem_platform.dylib: open /usr/lib/system/libsystem_platform.dylib: unrecognized object file
Local symbolization failed for libsystem_m.dylib: open /usr/lib/system/libsystem_m.dylib: unrecognized object file
Local symbolization failed for libdyld.dylib: open /usr/lib/system/libdyld.dylib: unrecognized object file
Entering interactive mode (type "help" for commands)
(pprof) top 10
6.92s of 6.92s total ( 100%)
flat flat% sum% cum cum%
6.60s 95.38% 95.38% 6.91s 99.86% [mandelbrot]
0.31s 4.48% 99.86% 0.32s 4.62% [libsystem_m.dylib]
0.01s 0.14% 100% 0.50s 7.23% [libsystem_platform.dylib]
0 0% 100% 5.47s 79.05%
0 0% 100% 5.47s 79.05% [libdyld.dylib]
0 0% 100% 0.21s 3.03% [libprofiler.0.dylib]
PROFILER.lock().unwrap().start("/tmp/prof.profile").unwrap();
[...code...]
PROFILER.lock().unwrap().stop().unwrap();
The above code fails with "No such file or directory" if the /tmp/prof.profile
file does not already exists. This strikes me as poor usability; the file should be created if it doesn't exist and overwritten if it does.
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.