You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement Counter CmdLets using Supported APIs #4306
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-ExternalThe issue is caused by external component(s).WG-Cmdletsgeneral cmdlet issues
System.Diagnostics.PerformanceCounter is part of WindowsCompatibilityPack for dotnetcore so this work is being done as part of WindowsPowerShellCompatibilityPack
Ilya (@iSazonov) need to figure out how to handle non-public APIs as I think only components shipped with Windows can use those APIs so even a binary package on PSGallery wouldn't be acceptable
I fast review the CoreFX code - it seems it implement only a counter reader but not file (blg) reader/writer. This is enough for Get-Counter but not for Import/Export-Counter.
We should make a request in CoreFX if we want System.Diagnostics.Eventing.Reader and etc.
Bill Long (@bill-long) I think our current thought is to get the Windows Inbox module to work. It currently works but has a naming conflict with with a PowerShell 7 module (also meaning both modules cannot be loaded at the same time). We considering a solution that resolves the naming conflict.
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifResolution-ExternalThe issue is caused by external component(s).WG-Cmdletsgeneral cmdlet issues
Activity
TravisEz13 commentedon Jul 21, 2017
I'll restate Ilya (@iSazonov) question which I removed.
You can assume that APIs documented in MSDN are supported as long as you follow the requirements in MSDN.
SteveL-MSFT commentedon Jan 31, 2018
System.Diagnostics.PerformanceCounter is part of WindowsCompatibilityPack for dotnetcore so this work is being done as part of WindowsPowerShellCompatibilityPack
iSazonov commentedon Feb 9, 2018
Steve Lee (@SteveL-MSFT) The problem is that there is no public API - MSFT can distribute the cmdlets only in binary package.
SteveL-MSFT commentedon Feb 9, 2018
Ilya (@iSazonov) need to figure out how to handle non-public APIs as I think only components shipped with Windows can use those APIs so even a binary package on PSGallery wouldn't be acceptable
iSazonov commentedon Feb 10, 2018
It seems the API is already ported to .Net Core and present in WCP https://github.com/dotnet/corefx/issues/3906
TravisEz13 commentedon Feb 12, 2018
Specifically https://www.nuget.org/packages/System.Diagnostics.PerformanceCounter, but does it have the APIs to replace https://github.com/PowerShell/PowerShell/blob/master/src/Microsoft.PowerShell.Commands.Diagnostics/PdhHelper.cs ?
iSazonov commentedon Feb 13, 2018
I fast review the CoreFX code - it seems it implement only a counter reader but not file (blg) reader/writer. This is enough for
Get-Counterbut not forImport/Export-Counter.We should make a request in CoreFX if we want
System.Diagnostics.Eventing.Readerand etc.bill-long commentedon Jun 4, 2019
Is this being considered for Powershell 7? I noticed Get-Counter still doesn't work in the preview.
TravisEz13 commentedon Jun 4, 2019
Bill Long (@bill-long) I think our current thought is to get the Windows Inbox module to work. It currently works but has a naming conflict with with a PowerShell 7 module (also meaning both modules cannot be loaded at the same time). We considering a solution that resolves the naming conflict.