hphp/runtime/base/apc-stats.h
// A new value replaces an existing one
A new value replaces an existing one
A new value replaces an existing one
void updateAPCValue(APCHandle* handle,
                      size_t size,
                      APCHandle* oldHandle,
                      size_t oldSize,
                      bool livePrimed,
                      bool expired) {
    assert(handle && size > 0 && oldHandle && oldSize > 0);
    auto diff = size - oldSize;
    if (diff != 0) {
      m_valueSize->addValue(diff);
      if (livePrimed) {
        m_livePrimedSize->addValue(diff);
      }
    }
    if (m_detailedStats) {
      m_detailedStats->updateAPCValue(handle, oldHandle, expired);
    }
  }
void updateAPCValue ( APCHandle * handle , size_t size , APCHandle * oldHandle , size_t oldSize , bool livePrimed , bool expired ) { assert ( handle && size > 0 && oldHandle && oldSize > 0 ) ; auto diff = size - oldSize ; if ( diff != 0 ) { m_valueSize -> addValue ( diff ) ; if ( livePrimed ) { m_livePrimedSize -> addValue ( diff ) ; } } if ( m_detailedStats ) { m_detailedStats -> updateAPCValue ( handle , oldHandle , expired ) ; } }
A new value replaces an existing one
A new value replaces an existing one