Skip to content

Implement Counter CmdLets using Supported APIs #4306

Closed

Description

Implement Counter CmdLets using Supported APIs
The previous implementation is here:
https://github.com/PowerShell/PowerShell/tree/master/src/Microsoft.PowerShell.Commands.Diagnostics
Which was removed due to #4272

Activity

  1. added
    WG-Cmdlets
    Issue-Discussion
    on Jul 20, 2017
  2. added this to the milestone on Jul 20, 2017
  3. TravisEz13 commented on Jul 21, 2017

    @TravisEz13
    MemberAuthor

    I'll restate Ilya (@iSazonov) question which I removed.

    How do I know what APIs are supported?

    You can assume that APIs documented in MSDN are supported as long as you follow the requirements in MSDN.

  4. added
    Resolution-External
    on Jan 31, 2018
  5. SteveL-MSFT commented on Jan 31, 2018

    @SteveL-MSFT
    Member

    System.Diagnostics.PerformanceCounter is part of WindowsCompatibilityPack for dotnetcore so this work is being done as part of WindowsPowerShellCompatibilityPack

  6. iSazonov commented on Feb 9, 2018

    @iSazonov
    Collaborator

    Steve Lee (@SteveL-MSFT) The problem is that there is no public API - MSFT can distribute the cmdlets only in binary package.

  7. SteveL-MSFT commented on Feb 9, 2018

    @SteveL-MSFT
    Member

    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

  8. iSazonov commented on Feb 10, 2018

    @iSazonov
    Collaborator

    It seems the API is already ported to .Net Core and present in WCP https://github.com/dotnet/corefx/issues/3906

  9. iSazonov commented on Feb 13, 2018

    @iSazonov
    Collaborator

    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.

  10. bill-long commented on Jun 4, 2019

    @bill-long

    Is this being considered for Powershell 7? I noticed Get-Counter still doesn't work in the preview.

  11. TravisEz13 commented on Jun 4, 2019

    @TravisEz13
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-DiscussionResolution-ExternalWG-Cmdlets

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions