dotnet / corefx-tools

Place to include various misc tools for .NET and .NET Core.
MIT License
58 stars 41 forks source link

fix lttng being optional #75

Open master-lincoln opened 6 years ago

master-lincoln commented 6 years ago

Currently when not having lttng available, the perfcollect script is not usable. Setting the -nolttng flag on startup doesn't help, as the usage of lttng wasn't guarded properly in the script.

This PR fixes this by first processing arguments and guarding the places where lttng is used.

Also fixes some trailing whitespace. If this disturbs your review append ?w=1 to the github URL to ignore.

dnfclas commented 6 years ago

CLA assistant check
All CLA requirements met.