basic-trace 0.2.0

dotnet tool install --global basic-trace --version 0.2.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local basic-trace --version 0.2.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=basic-trace&version=0.2.0
nuke :add-package basic-trace --version 0.2.0

basic-trace

basic-trace is a tool for basic performance tracing of .NET Core 3 applications. It is a simplified alternative to dotnet-trace except that it also works with redirected stdin/stdout, so you can also run it without a console attached. When dotnet-trace can be run without a console, basic-trace will be practically obsolete.

basic-trace will only output nettrace-format files. These can be viewed on Windows using PerfView, or converted to speedscope-format using dotnet-trace's convert command, and then viewed at https://www.speedscope.app.

# Converts nettrace file to speedscope, writing to trace.speedscope.json
> dotnet-trace convert --format Speedscope trace.nettrace

Installing

Install via NuGet:

> dotnet tool install --global basic-trace

Basic Usage

To perform a trace of your app, run:

> basic-trace -p Contoso.MyApp

-p/--process takes either the PID or the name of the process that you want to trace.

This will write the trace to a file called "trace.nettrace" in the working directory - this can be overridden with the -o/--output option:

> basic-trace -p Contoso.MyApp -o "../foo.nettrace"
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 is compatible.  netcoreapp3.1 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
0.2.0 552 12/10/2019
0.1.0 481 11/25/2019