Skip to content

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

License

Notifications You must be signed in to change notification settings

rainersigwald/TraceEventLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TraceEventLogger

An MSBuild logger that emits trace_event JSON suitable for Chrome’s Trace-Viewer.

Screenshot showing a timeline with targets flowing to one another

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 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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages