c_bool v_readerStatisticsReset(v_readerStatistics rs, const c_char* fieldName) { c_bool result; assert(rs!=NULL); assert(C_TYPECHECK(rs, v_readerStatistics)); result = FALSE; if (fieldName != NULL) { result = v_statisticsResetField(v_statistics(rs), fieldName); } else { v_maxValueReset(&rs->maxSampleSize); v_maxValueReset(&rs->maxSamplesPerInstance); v_maxValueReset(&rs->maxNumberOfSamples); v_maxValueReset(&rs->maxNumberOfInstances); v_fullCounterReset(&rs->readLatency); v_fullCounterReset(&rs->transportLatency); v_statisticsULongResetInternal(v_reader, numberOfSamples, rs); v_statisticsULongResetInternal(v_reader, numberOfInstances, rs); v_statisticsULongResetInternal(v_reader, numberOfInstancesWithStatusNew, rs); v_statisticsULongResetInternal(v_reader, numberOfInstancesWithStatusAlive, rs); v_statisticsULongResetInternal(v_reader, numberOfInstancesWithStatusDisposed, rs); v_statisticsULongResetInternal(v_reader, numberOfInstancesWithStatusNoWriters, rs); v_statisticsULongResetInternal(v_reader, numberOfSamplesWithStatusRead, rs); v_statisticsULongResetInternal(v_reader, numberOfSamplesExpired, rs); v_statisticsULongResetInternal(v_reader, numberOfSamplesPurgedByDispose, rs); v_statisticsULongResetInternal(v_reader, numberOfSamplesPurgedByNoWriters, rs); v_statisticsULongResetInternal(v_reader, numberOfSamplesArrived, rs); v_statisticsULongResetInternal(v_reader, numberOfSamplesInserted, rs); v_statisticsULongResetInternal(v_reader, numberOfSamplesDiscarded, rs); v_statisticsULongResetInternal(v_reader, numberOfSamplesRead, rs); v_statisticsULongResetInternal(v_reader, numberOfSamplesTaken, rs); v_statisticsULongResetInternal(v_reader, numberOfSamplesRejectedBySamplesLimit, rs); v_statisticsULongResetInternal(v_reader, numberOfSamplesRejectedByInstancesLimit, rs); v_statisticsULongResetInternal(v_reader, numberOfReads, rs); v_statisticsULongResetInternal(v_reader, numberOfInstanceReads, rs); v_statisticsULongResetInternal(v_reader, numberOfNextInstanceReads, rs); v_statisticsULongResetInternal(v_reader, numberOfInstanceLookups, rs); v_statisticsULongResetInternal(v_reader, numberOfTakes, rs); v_statisticsULongResetInternal(v_reader, numberOfInstanceTakes, rs); v_statisticsULongResetInternal(v_reader, numberOfNextInstanceTakes, rs); result = TRUE; } return result; }
c_bool v_networkingStatisticsReset( v_networkingStatistics _this, const c_char* fieldName) { c_bool result; assert(_this!=NULL); assert(C_TYPECHECK(_this, v_networkingStatistics)); result = FALSE; if (fieldName != NULL) { result = v_statisticsResetField(v_statistics(_this), fieldName); } else { _this->numberOfErrors = 0; result = TRUE; } return result; }
c_bool v_durabilityStatisticsReset(v_durabilityStatistics ds, const c_char* fieldName) { c_bool result; assert(ds != NULL); assert(C_TYPECHECK(ds, v_durabilityStatistics)); result = FALSE; if (fieldName != NULL) { result = v_statisticsResetField(v_statistics(ds), fieldName); } else { v_statisticsULongResetInternal(v_durability, persistentSamplesWritten, ds); v_maxValueReset(&ds->fellowsKnownMax); v_statisticsULongResetInternal(v_durability, fellowsKnown, ds); v_maxValueSetValue(&ds->fellowsKnownMax, ds->fellowsKnown); v_statisticsULongResetInternal(v_durability, fellowsApproved, ds); v_statisticsULongResetInternal(v_durability, fellowsIncompatibleState, ds); v_statisticsULongResetInternal(v_durability, fellowsIncompatibleDataModel, ds); v_statisticsULongResetInternal(v_durability, nameSpacesKnown, ds); v_statisticsULongResetInternal(v_durability, nameSpacesMaster, ds); v_statisticsULongResetInternal(v_durability, nameSpacesSlave, ds); v_statisticsULongResetInternal(v_durability, groupsToCreateTotal, ds); v_statisticsULongResetInternal(v_durability, groupsToCreateVolatile, ds); v_statisticsULongResetInternal(v_durability, groupsToCreateTransient, ds); v_statisticsULongResetInternal(v_durability, groupsToCreatePersistent, ds); v_statisticsULongResetInternal(v_durability, groupsKnownTotal, ds); v_statisticsULongResetInternal(v_durability, groupsKnownVolatile, ds); v_statisticsULongResetInternal(v_durability, groupsKnownTransient, ds); v_statisticsULongResetInternal(v_durability, groupsKnownPersistent, ds); v_statisticsULongResetInternal(v_durability, groupsCompleteTotal, ds); v_statisticsULongResetInternal(v_durability, groupsCompleteVolatile, ds); v_statisticsULongResetInternal(v_durability, groupsCompleteTransient, ds); v_statisticsULongResetInternal(v_durability, groupsCompletePersistent, ds); v_statisticsULongResetInternal(v_durability, groupsIncompleteTotal, ds); v_statisticsULongResetInternal(v_durability, groupsIncompleteVolatile, ds); v_statisticsULongResetInternal(v_durability, groupsIncompleteTransient, ds); v_statisticsULongResetInternal(v_durability, groupsIncompletePersistent, ds); v_statisticsULongResetInternal(v_durability, groupsIgnoredTotal, ds); v_statisticsULongResetInternal(v_durability, groupsIgnoredVolatile, ds); v_statisticsULongResetInternal(v_durability, groupsIgnoredTransient, ds); v_statisticsULongResetInternal(v_durability, groupsIgnoredPersistent, ds); v_statisticsULongResetInternal(v_durability, alignerRequestsReceived, ds); v_statisticsULongResetInternal(v_durability, alignerRequestsIgnored, ds); v_statisticsULongResetInternal(v_durability, alignerRequestsAnswered, ds); v_statisticsULongResetInternal(v_durability, alignerRequestsOpen, ds); v_statisticsULongResetInternal(v_durability, alignerRequestsCombined, ds); v_statisticsULongResetInternal(v_durability, alignerRequestsCombinedOpen, ds); v_statisticsULongResetInternal(v_durability, alignerRequestsCombinedAnswered, ds); v_maxValueReset(&ds->alignerRequestsOpenMax); v_maxValueSetValue(&ds->alignerRequestsOpenMax, ds->alignerRequestsOpen); v_maxValueReset(&ds->alignerRequestsCombinedOpenMax); v_maxValueSetValue(&ds->alignerRequestsCombinedOpenMax, ds->alignerRequestsCombinedOpen); v_statisticsULongResetInternal(v_durability, aligneeRequestsSent, ds); v_statisticsULongResetInternal(v_durability, aligneeRequestsOpen, ds); v_maxValueReset(&ds->aligneeRequestsOpenMax); v_maxValueSetValue(&ds->aligneeRequestsOpenMax, ds->aligneeRequestsOpen); v_statisticsULongResetInternal(v_durability, aligneeRequestsWaiting, ds); v_maxValueReset(&ds->aligneeRequestsWaitingMax); v_maxValueSetValue(&ds->aligneeRequestsWaitingMax, ds->aligneeRequestsWaiting); v_statisticsULongResetInternal(v_durability, aligneeSamplesTotal, ds); v_statisticsULongResetInternal(v_durability, aligneeSamplesRegister, ds); v_statisticsULongResetInternal(v_durability, aligneeSamplesWrite, ds); v_statisticsULongResetInternal(v_durability, aligneeSamplesDispose, ds); v_statisticsULongResetInternal(v_durability, aligneeSamplesWriteDispose, ds); v_statisticsULongResetInternal(v_durability, aligneeSamplesUnregister, ds); v_statisticsULongResetInternal(v_durability, alignerSamplesTotal, ds); v_statisticsULongResetInternal(v_durability, alignerSamplesRegister, ds); v_statisticsULongResetInternal(v_durability, alignerSamplesWrite, ds); v_statisticsULongResetInternal(v_durability, alignerSamplesDispose, ds); v_statisticsULongResetInternal(v_durability, alignerSamplesWriteDispose, ds); v_statisticsULongResetInternal(v_durability, alignerSamplesUnregister, ds); v_statisticsULongResetInternal(v_durability, aligneeTotalSize, ds); v_statisticsULongResetInternal(v_durability, alignerTotalSize, ds); result = TRUE; } return result; }