Skip to content

coz on Rust programs in release mode (using coz-rs) picks random lines in addr2line and never files in src #197

@LoganDark

Description

@LoganDark

I'm trying to use coz and coz-rs to do profiling things to a Rust application but I'm running into issues. The application is being built in release mode with debuginfo.

clion64_7dwaM4Gym2

It keeps picking random lines in addr2line instead of my actual program.

If I specify --source-scope, then all the source files of my program are "included" (according to inspect.cpp:509), but then no experiments are ever conducted. Probably because coz thinks the entire program is just addr2line.

If I build the binary in debug mode, it is prohibitively slow and unoptimized, but experiments get conducted.

In release mode with opt-level 2 experiments are not conducted.

In release mode with opt-level 1 experiments are not conducted.

In release mode with opt-level 0 experiments are conducted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions