cargo-profiler icon indicating copy to clipboard operation
cargo-profiler copied to clipboard

Help for making it work

Open gbip opened this issue 7 years ago • 5 comments

Hello, I can't figure out how to profile my binary. I usually start it like that target/debug/mybin -r my/path -w something.png.

I tried call cargo-profiler like this : cargo profiler callgrind -n 15 --release -- -r scenes/suzanne_low.json -- -w test.png

I also tried to specify the binary by hand : cargo profiler callgrind -n 10 --bin target/release/render_engine -- -r scenes/suzanne_low.json -- -w prof.png

The problem is that in both cases, the program doesn't parse any arguments at all : it silently stop at roughly 600k instructions. Can you explain to me how should I pass arguments to the binary ? Thanks a lot !

gbip avatar Mar 25 '17 18:03 gbip

I too seem to be having this problem

beamspease avatar Apr 14 '17 09:04 beamspease

Yep but it seems that this tool is not actively develloped.

gbip avatar Apr 14 '17 10:04 gbip

Also having this problem

dylanmckay avatar Sep 06 '17 00:09 dylanmckay

It appears that argument parsing isn't working at all.

In the readme argument parsing is v0.1.6 whereas the Cargo.toml refers to 0.1.5 - perhaps the latest version isn't published?

It appears installing from github works: cargo install cargo-profiler --git http://[email protected]/kernelmachine/cargo-profiler.git

peterbraden avatar Sep 11 '17 16:09 peterbraden

Yes, @peterbraden 's suggestion seems to work for me. It'd be great if there was a new release to Crates.io with the fix...

sourcefrog avatar Jan 14 '18 05:01 sourcefrog