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

flame: fix folded formatting #2710

Merged
merged 1 commit into from Sep 5, 2023
Merged

flame: fix folded formatting #2710

merged 1 commit into from Sep 5, 2023

Conversation

conectado
Copy link
Contributor

Motivation

The .folded format expects a ;-separated list of the stack function, optionally followed up by a sample count.

The implementation before this commit added a blank space after each ; which made parsers, such as inferno-flamegraph mis-interpret the data.

Furthermore, normally one wouldn't expect the filename and line-number in such stack trace.

Solution

Remove white-space between ; for the generated file and remove filename and line-number by default.

## Motivation

The `.folded` format expects a `;`-separated list of the stack function,
optionally followed up by a sample count.

The implementation before this commit added a blank space after each `;`
which made parsers, such as `inferno-flamegraph` mis-interpret the data.

Furthermore, normally one wouldn't expect the filename and line-number
in such stack trace.

## Solution

Remove white-space between `;` for the generated file and remove
filename and line-number by default.
@conectado conectado requested review from yaahc and a team as code owners September 4, 2023 21:14
@hawkw
Copy link
Member

hawkw commented Sep 5, 2023

CI failure looks like a GitHub Actions issue (https://github.com/tokio-rs/tracing/actions/runs/6077660247/job/16488145957?pr=2710), I'm manually re-running it.

@hawkw hawkw enabled auto-merge (squash) September 5, 2023 17:18
@hawkw hawkw disabled auto-merge September 5, 2023 17:25
@hawkw hawkw merged commit bab2e29 into tokio-rs:master Sep 5, 2023
56 checks passed
davidbarsky pushed a commit that referenced this pull request Sep 26, 2023
## Motivation

The `.folded` format expects a `;`-separated list of the stack function,
optionally followed up by a sample count.

The implementation before this commit added a blank space after each `;`
which made parsers, such as `inferno-flamegraph` mis-interpret the data.

Furthermore, normally one wouldn't expect the filename and line-number
in such stack trace.

## Solution

Remove white-space between `;` for the generated file and remove
filename and line-number by default.
davidbarsky pushed a commit that referenced this pull request Sep 27, 2023
## Motivation

The `.folded` format expects a `;`-separated list of the stack function,
optionally followed up by a sample count.

The implementation before this commit added a blank space after each `;`
which made parsers, such as `inferno-flamegraph` mis-interpret the data.

Furthermore, normally one wouldn't expect the filename and line-number
in such stack trace.

## Solution

Remove white-space between `;` for the generated file and remove
filename and line-number by default.
davidbarsky pushed a commit that referenced this pull request Sep 27, 2023
## Motivation

The `.folded` format expects a `;`-separated list of the stack function,
optionally followed up by a sample count.

The implementation before this commit added a blank space after each `;`
which made parsers, such as `inferno-flamegraph` mis-interpret the data.

Furthermore, normally one wouldn't expect the filename and line-number
in such stack trace.

## Solution

Remove white-space between `;` for the generated file and remove
filename and line-number by default.
davidbarsky pushed a commit that referenced this pull request Sep 27, 2023
## Motivation

The `.folded` format expects a `;`-separated list of the stack function,
optionally followed up by a sample count.

The implementation before this commit added a blank space after each `;`
which made parsers, such as `inferno-flamegraph` mis-interpret the data.

Furthermore, normally one wouldn't expect the filename and line-number
in such stack trace.

## Solution

Remove white-space between `;` for the generated file and remove
filename and line-number by default.
davidbarsky pushed a commit that referenced this pull request Sep 27, 2023
## Motivation

The `.folded` format expects a `;`-separated list of the stack function,
optionally followed up by a sample count.

The implementation before this commit added a blank space after each `;`
which made parsers, such as `inferno-flamegraph` mis-interpret the data.

Furthermore, normally one wouldn't expect the filename and line-number
in such stack trace.

## Solution

Remove white-space between `;` for the generated file and remove
filename and line-number by default.
davidbarsky pushed a commit that referenced this pull request Sep 29, 2023
## Motivation

The `.folded` format expects a `;`-separated list of the stack function,
optionally followed up by a sample count.

The implementation before this commit added a blank space after each `;`
which made parsers, such as `inferno-flamegraph` mis-interpret the data.

Furthermore, normally one wouldn't expect the filename and line-number
in such stack trace.

## Solution

Remove white-space between `;` for the generated file and remove
filename and line-number by default.
hawkw pushed a commit that referenced this pull request Oct 1, 2023
## Motivation

The `.folded` format expects a `;`-separated list of the stack function,
optionally followed up by a sample count.

The implementation before this commit added a blank space after each `;`
which made parsers, such as `inferno-flamegraph` mis-interpret the data.

Furthermore, normally one wouldn't expect the filename and line-number
in such stack trace.

## Solution

Remove white-space between `;` for the generated file and remove
filename and line-number by default.
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.

None yet

2 participants