flamegraph-rs / flamegraph

Easy flamegraphs for Rust projects and everything else, without Perl or pipes <3
Apache License 2.0
4.61k stars 141 forks source link

Add unit-test-kind option to allow choosing bin or lib #322

Closed felipou closed 4 months ago

felipou commented 4 months ago

When running with the unit-test option, there was no way to choose between a bin or lib target, so the result was always an error if there were both types for the same target name. To allow running unit tests in that case, this new option unit-test-kind may be used to specify the type of target that we want.

felipou commented 4 months ago

Partially solves https://github.com/flamegraph-rs/flamegraph/issues/245 (partially because we're not choosing "lib" automatically, the solution requires a new command line option, but at least allows us to run in that scenario, which was the problem I was having).