Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rainersigwald/traceeventlogger

An MSBuild logger that emits trace_event JSON suitable for Chrome's trace viewer.
https://github.com/rainersigwald/traceeventlogger

Last synced: 28 days ago
JSON representation

An MSBuild logger that emits trace_event JSON suitable for Chrome's trace viewer.

Awesome Lists containing this project

README

        

# TraceEventLogger
An MSBuild logger that emits trace_event JSON suitable for Chrome’s [Trace-Viewer](https://github.com/catapult-project/catapult/blob/master/tracing/README.md).

![Screenshot showing a timeline with targets flowing to one another](docs/screenshot.png)

## Usage

Because this logger doesn't preserve all of the information needed to debug builds in general, it's a good idea to capture a [binary log](https://github.com/Microsoft/msbuild/wiki/Binary-Log) and replay it through this logger.

Build your project with an attached binary log

```
msbuild project.csproj /bl
```

After you have a binary log, replay it with the TraceEventLogger attached

```
msbuild /l:path\to\TraceEventLogger.dll msbuild.binlog
```

This will emit a file named `msbuild_events.json` in the current working directory.

Using Chrome, open chrome://tracing, click "Load", and browse to the log output.