platform/core/dotnet/diagnostics.git
5 years agoUpdate dependencies from https://github.com/dotnet/runtime build 20200110.7 (#741)
dotnet-maestro[bot] [Sat, 11 Jan 2020 13:48:50 +0000 (13:48 +0000)]
Update dependencies from https://github.com/dotnet/runtime build 20200110.7 (#741)

- Microsoft.NETCore.App - 5.0.0-alpha.1.20060.7

5 years agoUpdate dependencies from https://github.com/dotnet/runtime build 20200109.11 (#739)
dotnet-maestro[bot] [Fri, 10 Jan 2020 13:41:59 +0000 (13:41 +0000)]
Update dependencies from https://github.com/dotnet/runtime build 20200109.11 (#739)

- Microsoft.NETCore.App - 5.0.0-alpha.1.20059.11

5 years agoAdd --clrevents flag to dotnet-trace (#738)
Sung Yoon Whang [Fri, 10 Jan 2020 01:23:47 +0000 (17:23 -0800)]
Add --clrevents flag to dotnet-trace (#738)

* Add clrevents flag

* Ignore clrevents if providers is already specified

* Docs change

* Change the error message a little bit

* case insensitive comparison for keywords, add clreventlevel option

* Threw back in a line that was deleted accidentally

* Add test for CLR provider parsing

* use stringcomparer instead of tolower

5 years agoFix newline formatting for dotnet-trace provider info (#737)
Sung Yoon Whang [Fri, 10 Jan 2020 00:07:28 +0000 (16:07 -0800)]
Fix newline formatting for dotnet-trace provider info (#737)

5 years agoUpdate dependencies from https://github.com/dotnet/runtime build 20200108.9 (#735)
dotnet-maestro[bot] [Thu, 9 Jan 2020 13:56:29 +0000 (13:56 +0000)]
Update dependencies from https://github.com/dotnet/runtime build 20200108.9 (#735)

- Microsoft.NETCore.App - 5.0.0-alpha.1.20058.9

5 years agoUpdate FAQ.md
Mike McLaughlin [Wed, 8 Jan 2020 20:57:02 +0000 (12:57 -0800)]
Update FAQ.md

5 years ago[master] Update dependencies from aspnet/AspNetCore (#726)
dotnet-maestro[bot] [Wed, 8 Jan 2020 19:45:29 +0000 (11:45 -0800)]
[master] Update dependencies from aspnet/AspNetCore (#726)

* Update dependencies from https://github.com/aspnet/AspNetCore build 20191230.2

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha.1.19630.2

* Update dependencies from https://github.com/aspnet/AspNetCore build 20200102.2

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha.1.20052.2

* Update dependencies from https://github.com/aspnet/AspNetCore build 20200104.2

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha.1.20054.2

* Update dependencies from https://github.com/aspnet/AspNetCore build 20200106.1

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha.1.20056.1

* Update dependencies from https://github.com/aspnet/AspNetCore build 20200106.6

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha.1.20056.6

Co-authored-by: Mike McLaughlin <mikem@microsoft.com>
5 years agoHandle glibc sys/sysctl.h deprecation (#27048) (#681)
Dongkyun Son [Wed, 8 Jan 2020 19:43:14 +0000 (04:43 +0900)]
Handle glibc sys/sysctl.h deprecation (#27048) (#681)

glibc has deprecated sys/sysctl.h:

    In file included from /coreclr/src/pal/src/misc/sysinfo.cpp:32:
    /usr/include/sys/sysctl.h:21:2: error: "The <sys/sysctl.h> header is deprecated and will be removed." [-Werror,-W#warnings]
    #warning "The <sys/sysctl.h> header is deprecated and will be removed."
     ^
    1 error generated.

Fix that by preferring sysconf and only including sys/sysctl.h if
HAVE_SYSCONF is not true. This mirrors the order of the implementation
code in this file (sysinfo.cpp) which checks for HAVE_SYSCONF
before HAVE_SYSCTL.

Fixes #27008

Co-authored-by: Omair Majid <omajid@redhat.com>
5 years ago[master] Update dependencies from dotnet/runtime (#725)
dotnet-maestro[bot] [Wed, 8 Jan 2020 16:41:11 +0000 (16:41 +0000)]
[master] Update dependencies from dotnet/runtime (#725)

* Update dependencies from https://github.com/dotnet/runtime build 20191230.4

- Microsoft.NETCore.App - 5.0.0-alpha.1.19630.4

* Update dependencies from https://github.com/dotnet/runtime build 20191231.3

- Microsoft.NETCore.App - 5.0.0-alpha.1.19631.3

* Update dependencies from https://github.com/dotnet/runtime build 20200101.1

- Microsoft.NETCore.App - 5.0.0-alpha.1.20051.1

* Update dependencies from https://github.com/dotnet/runtime build 20200102.3

- Microsoft.NETCore.App - 5.0.0-alpha.1.20052.3

* Update dependencies from https://github.com/dotnet/runtime build 20200103.4

- Microsoft.NETCore.App - 5.0.0-alpha.1.20053.4

* Update dependencies from https://github.com/dotnet/runtime build 20200104.2

- Microsoft.NETCore.App - 5.0.0-alpha.1.20054.2

* Update dependencies from https://github.com/dotnet/runtime build 20200105.4

- Microsoft.NETCore.App - 5.0.0-alpha.1.20055.4

* Update dependencies from https://github.com/dotnet/runtime build 20200106.3

- Microsoft.NETCore.App - 5.0.0-alpha.1.20056.3

* Update dependencies from https://github.com/dotnet/runtime build 20200107.6

- Microsoft.NETCore.App - 5.0.0-alpha.1.20057.6

Co-authored-by: Mike McLaughlin <mikem@microsoft.com>
5 years agoUpdate FAQ.md
Mike McLaughlin [Tue, 7 Jan 2020 00:32:38 +0000 (16:32 -0800)]
Update FAQ.md

5 years agoUpdate dependencies from https://github.com/dotnet/arcade build 20200105.1 (#730)
dotnet-maestro[bot] [Mon, 6 Jan 2020 13:43:00 +0000 (13:43 +0000)]
Update dependencies from https://github.com/dotnet/arcade build 20200105.1 (#730)

- Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.20055.1
- Microsoft.DotNet.RemoteExecutor - 5.0.0-beta.20055.1

5 years agoAdd dual .NET Core/desktop CLR runtime test
Mike McLaughlin [Sat, 4 Jan 2020 03:32:34 +0000 (19:32 -0800)]
Add dual .NET Core/desktop CLR runtime test

Added an desktop host native DLL that the modified WebApp3 debuggee
optionally pinvokes to start the desktop CLR. An modified SymbolTestDll
is the managed assembly that this desktop host loads and runs.

Fixed bug in GetClrModuleImages.

5 years agoAbstract all the runtime specific info and class.
Mike McLaughlin [Tue, 31 Dec 2019 02:18:23 +0000 (18:18 -0800)]
Abstract all the runtime specific info and class.

Add IRuntime/Runtime classes.

The code to get the runtime module address/size info, DAC/DBI file path, create/get the
SOS DAC process instance and to create/get the ICorDebug process instance to the Runtime
class implementation. It was moved mostly intack with some type and function name changes.

Added -desktop and -netcore options to the !sosstatus command to switch between runtimes.

Eventually SOSHosting will provide the IRuntime instance when hosted under dotnet-dump.

Fix unloading/reloading SOS (under windbg) issue: https://github.com/dotnet/diagnostics/issues/386

Flush process specific global state when process terminates issue: https://github.com/dotnet/diagnostics/issues/479

5 years agoMisc cleanup and fixes found during runtime change testing.
Mike McLaughlin [Tue, 31 Dec 2019 02:14:52 +0000 (18:14 -0800)]
Misc cleanup and fixes found during runtime change testing.

Change ctrl-c message issue: https://github.com/dotnet/diagnostics/issues/532

Revert 5.0.x runtime version until issue https://github.com/dotnet/runtime/issues/1229 is fixed.

5 years agoSome misc fixes to counters doc (#729)
Sung Yoon Whang [Sat, 4 Jan 2020 01:46:46 +0000 (17:46 -0800)]
Some misc fixes to counters doc (#729)

5 years agoFix sample code to actually print string name of the CLR events (#728)
Sung Yoon Whang [Fri, 3 Jan 2020 20:15:19 +0000 (12:15 -0800)]
Fix sample code to actually print string name of the CLR events (#728)

5 years ago[master] Update dependencies from dotnet/runtime (#713)
dotnet-maestro[bot] [Mon, 30 Dec 2019 21:12:26 +0000 (13:12 -0800)]
[master] Update dependencies from dotnet/runtime (#713)

* Update dependencies from https://github.com/dotnet/runtime build 20191218.3

- Microsoft.NETCore.App - 5.0.0-alpha.1.19618.3

* Update dependencies from https://github.com/dotnet/runtime build 20191219.11

- Microsoft.NETCore.App - 5.0.0-alpha.1.19619.11

* Update dependencies from https://github.com/dotnet/runtime build 20191220.3

- Microsoft.NETCore.App - 5.0.0-alpha.1.19620.3

* Update dependencies from https://github.com/dotnet/runtime build 20191221.1

- Microsoft.NETCore.App - 5.0.0-alpha.1.19621.1

* Update dependencies from https://github.com/dotnet/runtime build 20191222.1

- Microsoft.NETCore.App - 5.0.0-alpha.1.19622.1

* Update dependencies from https://github.com/dotnet/runtime build 20191223.2

- Microsoft.NETCore.App - 5.0.0-alpha.1.19623.2

* Update dependencies from https://github.com/dotnet/runtime build 20191226.2

- Microsoft.NETCore.App - 5.0.0-alpha.1.19626.2

* Update dependencies from https://github.com/dotnet/runtime build 20191227.5

- Microsoft.NETCore.App - 5.0.0-alpha.1.19627.5

Co-authored-by: Mike McLaughlin <mikem@microsoft.com>
5 years ago[master] Update dependencies from dotnet/arcade (#719)
dotnet-maestro[bot] [Mon, 30 Dec 2019 20:00:58 +0000 (20:00 +0000)]
[master] Update dependencies from dotnet/arcade (#719)

* Update dependencies from https://github.com/dotnet/arcade build 20191222.1

- Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19622.1
- Microsoft.DotNet.RemoteExecutor - 5.0.0-beta.19622.1

* Update dependencies from https://github.com/dotnet/arcade build 20191229.1

- Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19629.1
- Microsoft.DotNet.RemoteExecutor - 5.0.0-beta.19629.1

5 years ago[master] Update dependencies from aspnet/AspNetCore (#718)
dotnet-maestro[bot] [Sat, 28 Dec 2019 13:50:02 +0000 (13:50 +0000)]
[master] Update dependencies from aspnet/AspNetCore (#718)

* Update dependencies from https://github.com/aspnet/AspNetCore build 20191220.1

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha.1.19620.1

* Update dependencies from https://github.com/aspnet/AspNetCore build 20191223.2

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha.1.19623.2

* Update dependencies from https://github.com/aspnet/AspNetCore build 20191226.3

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha.1.19626.3

* Update dependencies from https://github.com/aspnet/AspNetCore build 20191227.1

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha.1.19627.1

5 years agoRemove legacy RuntimeClient library (#722)
Sung Yoon Whang [Thu, 26 Dec 2019 20:15:43 +0000 (12:15 -0800)]
Remove legacy RuntimeClient library (#722)

5 years agoDisplay rundown information when stopping trace (#721)
Sung Yoon Whang [Tue, 24 Dec 2019 03:46:28 +0000 (19:46 -0800)]
Display rundown information when stopping trace (#721)

5 years agoFix EventPipe tests to use the new DiagnosticsClient library (#720)
Sung Yoon Whang [Tue, 24 Dec 2019 01:33:59 +0000 (17:33 -0800)]
Fix EventPipe tests to use the new DiagnosticsClient library (#720)

* Change all the EventPipe tests to use DiagnosticsClient library

* Specify keyword for SentinelEventSource

* Fix MethodEvents

* Specify keywords for MyEventSource

5 years agoInitial commit (#714)
Sung Yoon Whang [Sun, 22 Dec 2019 19:56:14 +0000 (11:56 -0800)]
Initial commit (#714)

5 years agoUpdate dependencies from https://github.com/aspnet/AspNetCore build 20191219.2 (...
dotnet-maestro[bot] [Fri, 20 Dec 2019 14:01:32 +0000 (14:01 +0000)]
Update dependencies from https://github.com/aspnet/AspNetCore build 20191219.2 (#716)

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha.1.19619.2

5 years agoUpdate clrmd to version 1.1.61812 (module size and version info fixes) (#715)
Mike McLaughlin [Fri, 20 Dec 2019 01:02:02 +0000 (17:02 -0800)]
Update clrmd to version 1.1.61812 (module size and version info fixes) (#715)

5 years ago[master] Update dependencies from aspnet/AspNetCore (#706)
dotnet-maestro[bot] [Thu, 19 Dec 2019 13:41:15 +0000 (13:41 +0000)]
[master] Update dependencies from aspnet/AspNetCore (#706)

* Update dependencies from https://github.com/aspnet/AspNetCore build 20191216.1

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha.1.19616.1

* Update dependencies from https://github.com/aspnet/AspNetCore build 20191218.3

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha.1.19618.3

5 years agoAdd verbose info to clrmodules command. (#712)
Mike McLaughlin [Thu, 19 Dec 2019 00:53:10 +0000 (16:53 -0800)]
Add verbose info to clrmodules command. (#712)

Add version info to modules command.

5 years agoAvoid NullReferenceException in case the code path is run under an incompatible runti...
Andrew Au [Wed, 18 Dec 2019 21:58:31 +0000 (13:58 -0800)]
Avoid NullReferenceException in case the code path is run under an incompatible runtime (#711)

5 years agoReduce predeftlsslot.h to the set that SOS actually depends on (#709)
Jan Kotas [Wed, 18 Dec 2019 18:46:43 +0000 (10:46 -0800)]
Reduce predeftlsslot.h to the set that SOS actually depends on (#709)

5 years agoRevert _Pipeline_StreamDumpDir removal (#707)
Mike McLaughlin [Tue, 17 Dec 2019 18:08:37 +0000 (10:08 -0800)]
Revert _Pipeline_StreamDumpDir removal (#707)

5 years agoBump up DiagnosticsClient library version to 0.2.0 (#704)
Sung Yoon Whang [Tue, 17 Dec 2019 07:54:48 +0000 (23:54 -0800)]
Bump up DiagnosticsClient library version to 0.2.0 (#704)

5 years agoMake scheduled builds full official builds (#703)
Mike McLaughlin [Tue, 17 Dec 2019 06:41:59 +0000 (22:41 -0800)]
Make scheduled builds full official builds (#703)

Publish all the artifacts to the blob feeds for the scheduled builds so
the vendors don't have to do thier error prone builds.

Some minor cleanup to remove some pipeline warnings.

Change ClrStack casing in help docs to be consistent

Remove SDK entry in global.json so VS works

Update version prefix to 5.0.0

5 years agoMake MultiplePublishedProcessTest more stable (#701)
Sung Yoon Whang [Tue, 17 Dec 2019 06:32:32 +0000 (22:32 -0800)]
Make MultiplePublishedProcessTest more stable (#701)

* Make MultiplePublishedProcessTest more stable

5 years agoUpdate windows-instructions.md
Mike McLaughlin [Tue, 17 Dec 2019 01:20:05 +0000 (17:20 -0800)]
Update windows-instructions.md

5 years agoadd .NET Standard 2.0 for diagnostics client library (#700)
Adam Sitnik [Mon, 16 Dec 2019 23:59:19 +0000 (00:59 +0100)]
add .NET Standard 2.0 for diagnostics client library (#700)

5 years agoUpdate dependencies from https://github.com/dotnet/arcade build 20191215.1 (#699)
dotnet-maestro[bot] [Mon, 16 Dec 2019 13:47:32 +0000 (13:47 +0000)]
Update dependencies from https://github.com/dotnet/arcade build 20191215.1 (#699)

- Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19615.1
- Microsoft.DotNet.RemoteExecutor - 5.0.0-beta.19615.1

5 years agoUpdate dependencies from https://github.com/aspnet/AspNetCore build 20191214.22 ...
dotnet-maestro[bot] [Sun, 15 Dec 2019 13:40:31 +0000 (13:40 +0000)]
Update dependencies from https://github.com/aspnet/AspNetCore build 20191214.22 (#698)

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha.1.19614.22

5 years agoRevert back to 3.0.100 SDK version (#697)
Mike McLaughlin [Sun, 15 Dec 2019 00:50:53 +0000 (16:50 -0800)]
Revert back to 3.0.100 SDK version (#697)

5 years agoFix scheduled build (#696)
Mike McLaughlin [Sat, 14 Dec 2019 23:33:57 +0000 (15:33 -0800)]
Fix scheduled build (#696)

5 years agoFix various issues (#690)
Mike McLaughlin [Sat, 14 Dec 2019 23:29:42 +0000 (15:29 -0800)]
Fix various issues (#690)

Issue: https://github.com/dotnet/diagnostics/issues/673

SymbolReader doesn't support UNC symbol paths. Issue: https://github.com/dotnet/diagnostics/issues/674

Add -all gcroot option to docs. Issue: https://github.com/dotnet/diagnostics/issues/632

Better doc clrstack -all and other options. Issue: https://github.com/dotnet/diagnostics/issues/576

Doc RHEL lldb install. Issue: https://github.com/dotnet/diagnostics/issues/483

Add setclrpath command to dotnet-dump on linux. Mentioned in https://github.com/dotnet/diagnostics/issues/624

Issue: https://github.com/dotnet/diagnostics/issues/590

Add -timeout option to SetSymbolServer command. Issue: https://github.com/dotnet/diagnostics/issues/602

Use CommandPlatform on Windows specific commands

Don't use the desktop clr to host SOS managed code.

Don't allow dumplog on desktop clr target.

Cleanup SOSHost "is runtime" checks.

Removed unneeded install of the x86 SDK in InstallRuntimes.proj

Fix SOS on Windows where it needs to download the DAC but the symbol
server store was never initialized from the .sympath. This is even
more important when both coreclr and desktop clr are loaded in the
process/minidump.

Update to 3.0.1 runtime version

5 years agoUpdate dependencies from https://github.com/dotnet/arcade build 20191213.1 (#694)
dotnet-maestro[bot] [Sat, 14 Dec 2019 18:40:26 +0000 (18:40 +0000)]
Update dependencies from https://github.com/dotnet/arcade build 20191213.1 (#694)

- Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19613.1
- Microsoft.DotNet.RemoteExecutor - 5.0.0-beta.19613.1

5 years agoUpdate dependencies from https://github.com/aspnet/AspNetCore build 20191213.21 ...
dotnet-maestro[bot] [Sat, 14 Dec 2019 13:39:36 +0000 (13:39 +0000)]
Update dependencies from https://github.com/aspnet/AspNetCore build 20191213.21 (#695)

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19613.21

5 years agoUse darc runtime subscription versions for testing (#682)
Mike McLaughlin [Fri, 13 Dec 2019 22:47:52 +0000 (14:47 -0800)]
Use darc runtime subscription versions for testing (#682)

Use darc runtime subscription versions for testing

Update arcade to version 5.0.0-beta.19608.1

Replace install scripts with InstallRuntimes.proj (thanks to Juan).

Add build.ps1 on Windows. Build-Native.cmd just builds the native bits now.

Combine build.sh and build-native.sh scripts.

Remove -publish from scripts

Add running sosstatus command on SOSRunner errors.

Always set the host runtime (SOSHostRuntime) in test configs

Fix RuntimeFrameworkVersion config property usage

Sign, package and publish only if build legs successful

Issues: https://github.com/dotnet/diagnostics/issues/423
           https://github.com/dotnet/diagnostics/issues/480

5 years ago[master] Update dependencies from aspnet/AspNetCore (#688)
dotnet-maestro[bot] [Fri, 13 Dec 2019 14:03:42 +0000 (14:03 +0000)]
[master] Update dependencies from aspnet/AspNetCore (#688)

* Update dependencies from https://github.com/aspnet/AspNetCore build 20191211.17

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19611.17

* Update dependencies from https://github.com/aspnet/AspNetCore build 20191212.8

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19612.8

5 years agoFix GCEvent test being flakey (#689)
Sung Yoon Whang [Thu, 12 Dec 2019 23:16:18 +0000 (15:16 -0800)]
Fix GCEvent test being flakey (#689)

* Fix GCEvent test being flakey

* Fix build

5 years agoIncorrect tool referenced (#687)
Sean-Driscoll [Thu, 12 Dec 2019 14:28:49 +0000 (09:28 -0500)]
Incorrect tool referenced (#687)

5 years agoUpdate dependencies from https://github.com/aspnet/AspNetCore build 20191210.3 (...
dotnet-maestro[bot] [Wed, 11 Dec 2019 14:36:56 +0000 (14:36 +0000)]
Update dependencies from https://github.com/aspnet/AspNetCore build 20191210.3 (#684)

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19610.3

5 years agoFix ContentionEvents test to make it more stable (#683)
jiangzeng01 [Wed, 11 Dec 2019 10:39:26 +0000 (18:39 +0800)]
Fix ContentionEvents test to make it more stable (#683)

5 years agoAdd EventPipe events test (#659)
jiangzeng01 [Wed, 11 Dec 2019 01:37:20 +0000 (09:37 +0800)]
Add EventPipe events test (#659)

5 years agoPrepare SOS for single file support and add desktop CLR support (#658)
Mike McLaughlin [Tue, 10 Dec 2019 05:46:15 +0000 (21:46 -0800)]
Prepare SOS for single file support and add desktop CLR support (#658)

Prepare SOS for single file support and add desktop CLR support

Add defines and functions for the runtime, dac and dbi modules/dlls names.

Also supports desktop CLR

Add minidump retry for ERROR_PARTIAL_COPY

5 years agoUpgrade to latest System.CommandLine version (#668)
Mike McLaughlin [Fri, 6 Dec 2019 23:13:16 +0000 (15:13 -0800)]
Upgrade to latest System.CommandLine version (#668)

Upgrade to latest System.CommandLine version

Use collection initializers

5 years agoUpdate dependencies from https://github.com/aspnet/AspNetCore build 20191205.16 ...
dotnet-maestro[bot] [Fri, 6 Dec 2019 13:49:39 +0000 (13:49 +0000)]
Update dependencies from https://github.com/aspnet/AspNetCore build 20191205.16 (#672)

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19605.16

5 years agoMicrosoft.Diagnostics.NETCore.Client Implementation (#617)
Sung Yoon Whang [Fri, 6 Dec 2019 00:19:51 +0000 (16:19 -0800)]
Microsoft.Diagnostics.NETCore.Client Implementation (#617)

This is the initial implementation of Microsoft.Diagnostics.NETCore.Client library.

This will be released with version 1.0.0-preview, and when I feel that enough customers have validated it that we can match it with the rest of the diagnostics OOB packages and bump up the version to 3.1.

5 years agodotnet-counters JSON Exporter improvements (#666)
Sung Yoon Whang [Thu, 5 Dec 2019 21:23:25 +0000 (13:23 -0800)]
dotnet-counters JSON Exporter improvements (#666)

* make timestamp non culture-sensitive, change 'counter type' to 'counterType'

* Remove more spaces from the JSON

5 years agoSpeedScope handles only CPU samples, events are not supported (#661)
Adam Sitnik [Thu, 5 Dec 2019 19:19:43 +0000 (20:19 +0100)]
SpeedScope handles only CPU samples, events are not supported (#661)

5 years agoadd missing README.md files for global tools (#662)
Adam Sitnik [Wed, 4 Dec 2019 21:30:47 +0000 (22:30 +0100)]
add missing README.md files for global tools (#662)

* add missing README.md files for global tools

* use relative link

5 years agoUpdate dependencies from https://github.com/aspnet/AspNetCore build 20191203.5 (...
dotnet-maestro[bot] [Wed, 4 Dec 2019 13:51:20 +0000 (13:51 +0000)]
Update dependencies from https://github.com/aspnet/AspNetCore build 20191203.5 (#665)

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19603.5

5 years agoUpdate dependencies from https://github.com/aspnet/AspNetCore build 20191202.2 (...
dotnet-maestro[bot] [Tue, 3 Dec 2019 13:50:56 +0000 (13:50 +0000)]
Update dependencies from https://github.com/aspnet/AspNetCore build 20191202.2 (#660)

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19602.2

5 years agoUpdate dependencies from https://github.com/aspnet/AspNetCore build 20191201.2 (...
dotnet-maestro[bot] [Mon, 2 Dec 2019 13:50:40 +0000 (13:50 +0000)]
Update dependencies from https://github.com/aspnet/AspNetCore build 20191201.2 (#657)

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19601.2

5 years agoUpdate dependencies from https://github.com/aspnet/AspNetCore build 20191128.4 (...
dotnet-maestro[bot] [Fri, 29 Nov 2019 13:50:48 +0000 (13:50 +0000)]
Update dependencies from https://github.com/aspnet/AspNetCore build 20191128.4 (#656)

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19578.4

5 years agoUpdate dependencies from https://github.com/aspnet/AspNetCore build 20191127.15 ...
dotnet-maestro[bot] [Thu, 28 Nov 2019 13:50:27 +0000 (13:50 +0000)]
Update dependencies from https://github.com/aspnet/AspNetCore build 20191127.15 (#655)

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19577.15

5 years agoAvoid exceptions when console is not available (#644)
Paul Harrington [Wed, 27 Nov 2019 18:41:29 +0000 (10:41 -0800)]
Avoid exceptions when console is not available (#644)

* Do not manipulate cursor if Console not available

* Use console.GetTerminal() to test for console

5 years agoAdd documentation on EventCounters (#605)
Sung Yoon Whang [Wed, 27 Nov 2019 00:00:30 +0000 (16:00 -0800)]
Add documentation on EventCounters (#605)

* Adding some initial EventCounters documentation

* Add more stuff about incrementingeventcounter

* Add pictures

* Add more description about how to write your own counter

* Add out-of-proc consumption, more samples

* formatting

* more formatting

* Add section about concurrency

* cleanup, formatting

* format

* Address PR feedback

5 years agoUpdate dependencies from https://github.com/aspnet/AspNetCore build 20191125.10 ...
dotnet-maestro[bot] [Tue, 26 Nov 2019 13:49:43 +0000 (13:49 +0000)]
Update dependencies from https://github.com/aspnet/AspNetCore build 20191125.10 (#650)

- Microsoft.AspNetCore.App.Ref - 5.0.0-alpha1.19575.10

5 years agoFix Windows X86 SOS test failures (#647)
Mike McLaughlin [Mon, 25 Nov 2019 23:39:18 +0000 (15:39 -0800)]
Fix Windows X86 SOS test failures (#647)

5 years agoAdd dependencies on testing packages (#640)
Juan Hoyos [Sat, 23 Nov 2019 19:26:01 +0000 (11:26 -0800)]
Add dependencies on testing packages (#640)

5 years agoTest 3.1 runtime, stop testing on 1.1 and 2.2 (#639)
Mike McLaughlin [Sat, 23 Nov 2019 19:25:53 +0000 (11:25 -0800)]
Test 3.1 runtime, stop testing on 1.1 and 2.2 (#639)

Update help doc with some missing aliases.

5 years agoMake dotnet-counters aware of DisplayUnits (#642)
Sung Yoon Whang [Sat, 23 Nov 2019 02:26:47 +0000 (18:26 -0800)]
Make dotnet-counters aware of DisplayUnits (#642)

5 years agolist-processes -> ps (#641)
Andy Sterland [Sat, 23 Nov 2019 01:10:39 +0000 (17:10 -0800)]
list-processes -> ps (#641)

It looks like list-processes is no longer a command and instead it's ps.

5 years agoAdd 3.1 to the installed host runtimes (#636)
Mike McLaughlin [Fri, 22 Nov 2019 02:22:25 +0000 (18:22 -0800)]
Add 3.1 to the installed host runtimes (#636)

Add 3.1 to the installed host runtimes

Don`t enable exception callback if bpmd hasn't been executed

5 years agoAdding a documentation page for using a privately build sos (#626)
Andrew Au [Wed, 20 Nov 2019 00:12:56 +0000 (16:12 -0800)]
Adding a documentation page for using a privately build sos (#626)

5 years agoadd eventpipe test harness (#618)
John Salem [Tue, 19 Nov 2019 23:10:29 +0000 (15:10 -0800)]
add eventpipe test harness (#618)

* Add eventpipe test harness to diagnostics repo

5 years agoFix flushing of string builder for multi-parameter conditions (#625)
Juan Hoyos [Tue, 19 Nov 2019 17:47:59 +0000 (09:47 -0800)]
Fix flushing of string builder for multi-parameter conditions (#625)

5 years agoFix bpmd on Windows and other changes (#622)
Mike McLaughlin [Mon, 18 Nov 2019 22:59:18 +0000 (14:59 -0800)]
Fix bpmd on Windows and other changes (#622)

Fix bpmd on Windows by implementing IDataTarget2 which allows the DAC to allocate a JIT notification
table which is empty on Windows. Issue https://github.com/dotnet/diagnostics/issues/584.

Add SetRuntimeLoadedCallback lldb service for bpmd

Allow bpmd to work before coreclr is loaded. Issue https://github.com/dotnet/diagnostics/issues/15

Upgrade to symstore 1.0.55801

Set/reset symbol server path anytime .sympath changes

Add lldb h files to plugin project

Add bpmd tests. Update readme and help docs

5 years agoFix config parser and logging path to support (#620)
Juan Hoyos [Fri, 15 Nov 2019 18:50:26 +0000 (10:50 -0800)]
Fix config parser and logging path to support (#620)

* Fix flaw in configuration parser error detection for negative clauses
* Logging paths can't have wildcards, but runtime specifiers can and this is used in our log names. In that case I resorted to use <Major.Minor.Patch> as the version for the log while preserving old behavior. That way xUnit still displays the full arg list for test disambiguation, but the logs only contain valid file names

5 years agoTry using the test reporter to report tests (#615)
Juan Hoyos [Thu, 14 Nov 2019 19:54:22 +0000 (11:54 -0800)]
Try using the test reporter to report tests (#615)

Use the AzDO pipeline reporter for xUnit style tests:

- This adds a per test report per run.
- Reports are now seen in the tests tab of a pipeline run as well as a tally in GitHub

5 years agoAdd new function options to conditions in test runner (#611)
Juan Hoyos [Thu, 14 Nov 2019 19:40:42 +0000 (11:40 -0800)]
Add new function options to conditions in test runner (#611)

Adds the following options to the test helper condition attributes:

* Contains(string, string)
* StartsWith(string, string)
* EndsWith(string, string)

And adds argument validation that throws exception - to prevent any more tests to be skipped silently.

5 years agoFix default PID value and add rollforward forgcdump (#614)
John Salem [Thu, 14 Nov 2019 18:57:27 +0000 (10:57 -0800)]
Fix default PID value and add rollforward forgcdump (#614)

* Prevent default value for pid
add roll forward runtimeconfig to dotnet-gcdump

* Change default to 0 and modify error message

* Change error message

5 years agoWait for process exit independently of waiting for stream flushing (#612)
Juan Hoyos [Wed, 13 Nov 2019 23:53:48 +0000 (15:53 -0800)]
Wait for process exit independently of waiting for stream flushing (#612)

* Wait for process exit independently of waiting for stream flushing
Before, the ProcessRunner waited for the process completion as well as stream
buffer flushing for stdout and stderr. This is problematic if the process
it ran dies, but its spawned child processes keep the defunct's standard
streams alive by redirecting to them. We have had no way of harvesting
the children, so this process hung the runner.

After this change, we wait for the spawned process to die. As soon as that happens,
we give the pipes a grace period of 15 seconds to flush, after which we assume
the process is dead. This has the shortcoming of two potentially problematic
situations:
- We've potentially left an unobserved aggregate exception unobserved that will throw
on the finalizer thread once the tasks get collected in exceptional cases.
- This might leak threadpool threads.

5 years agoDraft Proposal for Diagnostics Client Library (a.k.a. "Runtime Client Library") ...
Sung Yoon Whang [Wed, 13 Nov 2019 23:05:28 +0000 (15:05 -0800)]
Draft Proposal for Diagnostics Client Library (a.k.a. "Runtime Client Library") (#574)

5 years agoAdd counters tests to the diagnostics solution file to get it tested on automation...
Sung Yoon Whang [Tue, 12 Nov 2019 23:34:45 +0000 (15:34 -0800)]
Add counters tests to the diagnostics solution file to get it tested on automation (#609)

5 years agofix typo in README.md (#608)
Denis Andrejew [Sat, 9 Nov 2019 10:21:19 +0000 (11:21 +0100)]
fix typo in README.md (#608)

5 years agoFix formatting error in dotnet-counters doc (#604)
Sung Yoon Whang [Fri, 8 Nov 2019 22:36:46 +0000 (14:36 -0800)]
Fix formatting error in dotnet-counters doc (#604)

5 years agoRevert "Update the docker images used to have a newer version of CMake. (#597)" ...
Mike McLaughlin [Thu, 7 Nov 2019 02:24:12 +0000 (18:24 -0800)]
Revert "Update the docker images used to have a newer version of CMake. (#597)" (#598)

This reverts commit 0efe77744d981e3ecf0adaa9128b9880982f571e.

Not ready for the new CentOS 7 image with lldb 9.0 and the cross build images fail because build-native.sh needs to use clang 9.0 and the alpine image fails just building managed code with:

##[error].packages/microsoft.build.tasks.git/1.0.0-beta2-19270-01/build/Microsoft.Build.Tasks.Git.targets(16,5): error : The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception.
   at LibGit2Sharp.Core.NativeMethods.git_buf_free(GitBuf buf)
   at LibGit2Sharp.Core.Proxy.git_buf_free(GitBuf buf)
   at LibGit2Sharp.Core.Handles.GitBuf.Dispose()
   at LibGit2Sharp.Core.Proxy.ConvertPath(Func`2 pathRetriever)
   at LibGit2Sharp.Core.Proxy.git_repository_discover(FilePath start_path)
   at LibGit2Sharp.Repository.Discover(String startingPath)
   at Microsoft.Build.Tasks.Git.GitOperations.LocateRepository(String directory) in /_/src/Microsoft.Build.Tasks.Git.Operations/GitOperations.cs:line 26
   at Microsoft.Build.Tasks.Git.RepositoryTasks.LocateRepository(LocateRepository task) in /_/src/Microsoft.Build.Tasks.Git.Operations/RepositoryTasks.cs:line 58
/datadisks/disk1/workspace/_work/1/s/.dotnet/sdk/3.0.100/Roslyn/Microsoft.Managed.Core.targets(102,5): error : SourceRoot items must include at least one top-level (not nested) item when DeterministicSourcePaths is true [/datadisks/disk1/workspace/_work/1/s/src/SOS/lldbplugin.tests/TestDebuggee/TestDebuggee.csproj]

5 years agoUpdate the docker images used to have a newer version of CMake. (#597)
Jeremy Koritzinsky [Thu, 7 Nov 2019 00:32:29 +0000 (16:32 -0800)]
Update the docker images used to have a newer version of CMake. (#597)

5 years agoAdd dotnet-gcdump to diagnostics.sln so it builds in official builds (#594)
John Salem [Tue, 5 Nov 2019 02:25:50 +0000 (18:25 -0800)]
Add dotnet-gcdump to diagnostics.sln so it builds in official builds (#594)

5 years agoUse OSX 10.13 as the build agent for public CI (#593)
Juan Hoyos [Tue, 5 Nov 2019 00:18:00 +0000 (16:18 -0800)]
Use OSX 10.13 as the build agent for public CI (#593)

Thanks Juan!

5 years agoMerge pull request #581 from josalem/dev/josalem/gcdump-tool
John Salem [Sat, 2 Nov 2019 01:15:05 +0000 (18:15 -0700)]
Merge pull request #581 from josalem/dev/josalem/gcdump-tool

dotnet-gcdump

5 years ago* Refactoring to remove polling for type cache clearing session
John Salem [Sat, 2 Nov 2019 01:10:17 +0000 (18:10 -0700)]
* Refactoring to remove polling for type cache clearing session

* Switch to a static function on Stopwatch to avoid multi-threading
concerns with Stopwatch.Elapsed

* Change tool name when writing memory graph

* Add explicit null check on gcDumpSession to catch NRE in the event
EventPipe failed to connect.

* Add comment in README about future of code shared with PerfView

* Refactor to remove wrapping task for type flush session
* make EventPipeSession disposable to ensure stream is closed in case of
exception in the reader
* add using statements around source.Process calls
* add additional logging to verbose log

* Add additional logging
* add timeout option

* Remove unnecessary using statements

* Update src/Tools/dotnet-gcdump/CommandLine/CollectCommandHandler.cs

Co-Authored-By: Noah Falk <noahfalk@users.noreply.github.com>
* Update src/Tools/dotnet-gcdump/DotNetHeapDump/README.md

Co-Authored-By: Noah Falk <noahfalk@users.noreply.github.com>
* Fix weird unintended docs change

* Refactor to reduce multi-threading
* use cancellation token to cancel tasks on ctrl-c
* swallow TaskCancellationExceptions
* use volatile members for bools that are used between threads

* Check dump status on return to amke sure we don't throw additional
errors if event collection fails

* fix last whitespace issue

5 years agoAdd spec for gcdump tool (#512)
John Salem [Fri, 1 Nov 2019 21:48:41 +0000 (14:48 -0700)]
Add spec for gcdump tool (#512)

5 years agoUpdate core dump debugging work flow (#587)
Mike McLaughlin [Wed, 30 Oct 2019 05:02:59 +0000 (22:02 -0700)]
Update core dump debugging work flow (#587)

Update the Linux core dump debugging work flow

5 years agoreplace obsoleted attribute CoreJobAttribute with SimpleJob (#585)
Shiming Ge [Tue, 29 Oct 2019 08:23:13 +0000 (16:23 +0800)]
replace obsoleted attribute CoreJobAttribute with SimpleJob (#585)

5 years agoFix incorrect value displayed for rate counters (#583)
Sung Yoon Whang [Sun, 27 Oct 2019 02:30:10 +0000 (19:30 -0700)]
Fix incorrect value displayed for rate counters (#583)

* Fix incorrect value displayed for rate counters

* Add tests

5 years agoChange PerfView Utilities usage to BCL
John Salem [Fri, 25 Oct 2019 22:04:16 +0000 (15:04 -0700)]
Change PerfView Utilities usage to BCL

5 years agoInitial commit of dotnet-gcdump
John Salem [Fri, 25 Oct 2019 21:55:32 +0000 (14:55 -0700)]
Initial commit of dotnet-gcdump
* NOTE: use this commit as baseline for file copied from Microsoft/PerfView

5 years agoExport feature for dotnet-counters (#493)
Sung Yoon Whang [Fri, 25 Oct 2019 20:03:40 +0000 (13:03 -0700)]
Export feature for dotnet-counters (#493)

* Command line stuff

* Implement CSV/JSON Exporters

* some cleanup

* Overwrite the output if needed

* remove newline

* build error

* Refactor to remove duplicacy between ConsoleWriter and Exporters

* Remove ICounterExporter

* Add license headers

* Docs change

* Remove unused using

* Add file extension to output path only when necessary, remove some remaining comments and useless code

* Add unit tests for dotnet-counters

* remove useless binaries from the commit

* change comment

* tabs -> spaces

* Remove unused tests

* Address PR feedback on tests

* More PR feedback

* Fix PR comments

5 years agoUpdate benchmarkdotnet version to 0.12.0 (#582)
Sung Yoon Whang [Fri, 25 Oct 2019 18:06:05 +0000 (11:06 -0700)]
Update benchmarkdotnet version to 0.12.0 (#582)

5 years agoFix incorrect description of CreateCoreDump command - diagnostics argument (#579)
Sung Yoon Whang [Wed, 23 Oct 2019 17:20:03 +0000 (10:20 -0700)]
Fix incorrect description of CreateCoreDump command - diagnostics argument (#579)

5 years agoUpdated profiles (#566)
Felipe Pessoto [Wed, 16 Oct 2019 20:17:16 +0000 (17:17 -0300)]
Updated profiles (#566)

5 years agoFix dumpheap failures on certain dumps. (#561)
Mike McLaughlin [Tue, 15 Oct 2019 21:58:46 +0000 (14:58 -0700)]
Fix dumpheap failures on certain dumps. (#561)

Fix dumpheap failures on certain dumps.

Issue: https://github.com/dotnet/diagnostics/issues/503

Add MemoryService to package up all the read memory "mapping" logic.

Add MemoryCache to module mapping logic.

Rewrote ReadVirtualCache because of a couple of bugs that caused
some test failures on triage dumps making !pe displaying the exception
message string  not reliable.

Add SystemMemoryVersion property to Versions.props