Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests that use the FlameGraph test files #11

Merged
merged 6 commits into from
Jan 29, 2019

Conversation

jasonrhansen
Copy link
Collaborator

The main functionality of collapse-perf has been split out into a library to
allow the tests to call handle_file() directly and get a result without
creating temporary files.

Flamegraph has been added as a git submodule so we can use their test files in
flamegraph/test. Not all tests are passing so those still need to be looked
into.

The main functionality of collapse-perf has been split out into a library to
allow the tests to call handle_file() directly and get a result without
creating temporary files.

Flamegraph has been added as a git submodule so we can use their test files in
flamegraph/test. Not all tests are passing so those still need to be looked
into.
@jasonrhansen
Copy link
Collaborator Author

#2

Cargo.toml Outdated Show resolved Hide resolved
src/collapse-perf.rs Outdated Show resolved Hide resolved
@jonhoo
Copy link
Owner

jonhoo commented Jan 29, 2019

This is so great! See the inline comments I've left. Can you give me some insight into which tests/patterns are failing?

Sometimes the stack line has 2 spaces after the pc like this:
    7f1e2215d058  (/lib/x86_64-linux-gnu/libc-2.15.so)

The perl version preserves the extra space as the func. This commit
matches that behavior, which makes 5 more tests pass.
@jasonrhansen
Copy link
Collaborator Author

5 more tests pass with 07c27d7.
67 tests pass, 11 fail.

@jonhoo jonhoo merged commit db2eab6 into jonhoo:master Jan 29, 2019
@jonhoo
Copy link
Owner

jonhoo commented Jan 29, 2019

Thanks! I'll start integrating this with CI and do some clean-up, but this is a superb starting point!

@jonhoo
Copy link
Owner

jonhoo commented Jan 29, 2019

I believe I've fixed the remaining tests now. CI is running it here as we speak!

@jasonrhansen jasonrhansen deleted the tests branch February 12, 2019 18:30
jonhoo pushed a commit that referenced this pull request Sep 9, 2023
Put 1.70 in there (for instance if you want to pin against OnceLock stabilizing) and it will actually test 1.7 as it appears github auto converts this to a float?

Putting in quotes seems to do the right thing here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants