dotnet / dotnet/diagnostics

[Feature Request] Add support for reporting with pprof's profile.proto format in CLI tools

Open
#2,563 0 comments 4 reactions 0 assignees View on GitHub
enhancement nettrace conversion
Dominant language
C++
Stars
1.3k
Forks
404
Avg merge
2d 5h
Merged PRs (30d)
35

Description

## Background and Motivation

Pprof's profile.proto format is a generic format for profiling output. Adding support for this format would allow us to use existing tools to generate flamegraph visualizations and perform data analysis. More info: https://github.com/google/pprof/tree/master/proto

## Proposed Feature

Add the option to format output in gzipped profile.proto format in tools like dotnet-gcdump, dotnet-stack, etc.

For dotnet-stack, the output sample stack should consist of the stack trace of each thread, with one measurement (count).
For dotnet-gcdump, the sample stack should consist of parent objects and their associated child objects with two measurements (count and size).
For dotnet-trace, the sample stack should consist of the stack trace of each event, with two measurements (duration and sample count).

## Usage Examples

```
dotnet-gcdump report --format proto
dotnet-stack report --format proto
dotnet-trace collect --format proto
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.