dotnet / dotnet/diagnostics

Investigate: Use a file format for dotnet-trace profiles

Open
#337 4 comments 0 reactions 0 assignees View on GitHub
dotnet-trace enhancement
Dominant language
C++
Stars
1.3k
Forks
404
Avg merge
2d 3h
Merged PRs (30d)
38

Description

Right now we have hard-coded profile names that are accepted by the --profile argument in dotnet-trace. We should look into defining a simple file format where provider/keyword/level/filter info can be written. The --profile argument would then be interpreted as the name of one of these files. This makes the list extensible by end-users.

My expectation if we went down this route is that Microsoft would still provide some pre-defined options (perhaps now written as files instead of constants in the code). Most users would probably stick to that set, but experts or adventurous users might create their own.

Some open questions:
a) What is the file format?
b) Does --profile support/require a full path?
c) Assuming it doesn't require full path, where does the tool look to find the files?
d) Do we need a way to enumerate the options?
e) Should the file contain descriptive information that users can see, either by directly looking at the file or by having the UI show it somewhere?
f) Does adding these files subsume the need to specify providers on the command-line?

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.