PpmSnapDripsAccountingSnapshot

VOID __stdcall PpmSnapDripsAccountingSnapshot(UINT64 CsDuration, UINT64 DripsResidency){
  UINT64 *v2; 
  __int64 v4; 
  UINT64 v5; 
  UINT64 *v6; 
  __int64 v7; 
  _QWORD *v8; 
  UINT64 *v9; 
  UINT64 v10; 
  UINT64 DripsIdleBuckets[26]; 
  v4 = 0i64;
  v5 = PopWnfCsEnterScenarioId;
  v6 = v2;
  if( PpmPlatformStates && (_DWORD)PlatformIdleStateIndex != -1 )
  {
    v7 = 26i64;
    v8 = (_QWORD *)(1008i64 * (unsigned int)PlatformIdleStateIndex + *(_QWORD *)(PpmPlatformStates + 48) + 200i64);
    do
    {
      DripsIdleBuckets[v4] = PpmConvertTime(*v8 - PpmDripsAccountingSnapshot[v4], PopQpcFrequency, 0x989680ui64);
      ++v4;
      v8 += 4;
      --v7;
    }
    while( v7 );
    PpmEventTraceDripsAccountingSnapshot(v9, (UINT64)DripsIdleBuckets);
    PopDiagTraceDripsHistogram(v5, DripsResidency, v6, v10);
  }
}

Referenced by:

PopCaptureSleepStudyStatistics