How to resolve <not counted> problem in perf tool?

1,013

Your processor does not support so many counters and too frequent switching between them, I guess.

You see in the last example the last column, where the counters are multiplexed (counted only over 33% of the time). If you use small enough task (or over more cores?), they are not counted, because all of the time the others were used. In your first example, only the cycles were managed to count in the time.

Share:
1,013

Related videos on Youtube

seawolf
Author by

seawolf

Updated on September 18, 2022

Comments

  • seawolf
    seawolf over 1 year

    I am trying to migrate an ASP.NET application to MVC 5. The final piece to migrate is the membership provider. I am unable to configure the application to access the existing membership provider.

    I started by looking at the documentation at MSDN's Sample Membership Provider Implementation. This leads me to enter the following in my Web.config:

    <membership defaultProvider="MyMembershipProvider">
      <providers>
        <clear />
        <add
          name="MyMembershipProvider"
          type="my.namespace.MyMembershipProvider, my.package.name"
          connectionStringName="MyServiceContext"
          enablePasswordRetrieval="false"
          enablePasswordReset="true"
          requiresQuestionAndAnswer="false"
          requiresUniqueEmail="false"
          writeExceptionsToEventLog="true"
          />
      </providers>
    </membership>
    <roleManager defaultProvider="MyRoleProvider">
      <providers>
        <clear />
        <add
          name="MyRoleProvider"
          type="my.namespace.MyRoleProvider, my.package.name"
          />
      </providers>
    </roleManager>
    

    When I try to run the application, I get the following error:

    The configuration section 'membership' cannot be read because it is missing a section declaration
    

    What might I be doing wrong?

    • Chris Pratt
      Chris Pratt over 9 years
      For what it's worth, MVC 5 comes standard with Identity, which doesn't use membership providers (those are part of the older ASP.NET Membership, for which Identity is a replacement). While you can technically still work with ASP.NET Membership, it's essentially deprecated. I'm not sure what you needed a custom provider for, but you should really focus on migrating that to Identity rather than bootstrapping MVC 5 with outdated tech.
    • seawolf
      seawolf over 9 years
      I'm working with a client that specifically wants to use the existing membership provider, so I don't really have a choice, unless I can re-map Identity to use the right tables and schema.
  • ANTHONY
    ANTHONY almost 8 years
    yes ,you are right @Jakuje . Such situation might be possible. But what you are saying is, as the executable file is small then it don't have sufficient time to multiplex events on the limited counters.
  • Jakuje
    Jakuje almost 8 years
    Not executable file, but execution time. Three seconds is really a little time.
  • Trần Hữu Hiền
    Trần Hữu Hiền over 3 years
    Thank you very much! This saves my life!