| Index: base/debug/trace_event_impl.cc
|
| diff --git a/base/debug/trace_event_impl.cc b/base/debug/trace_event_impl.cc
|
| index ce62766da3df551884d487c2ea5f914a22f9d18a..71626e0cbec8c76c99ec844a80e4f5716c2adffb 100644
|
| --- a/base/debug/trace_event_impl.cc
|
| +++ b/base/debug/trace_event_impl.cc
|
| @@ -1586,10 +1586,12 @@ bool TraceLog::HasEnabledStateObserver(EnabledStateObserver* listener) const {
|
| return it != enabled_state_observer_list_.end();
|
| }
|
|
|
| -float TraceLog::GetBufferPercentFull() const {
|
| +void TraceLog::GetBufferUsage(float* percent_full,
|
| + size_t* approximate_event_count) const {
|
| AutoLock lock(lock_);
|
| - return static_cast<float>(static_cast<double>(logged_events_->Size()) /
|
| - logged_events_->Capacity());
|
| + *percent_full = static_cast<float>(
|
| + static_cast<double>(logged_events_->Size()) / logged_events_->Capacity());
|
| + *approximate_event_count = logged_events_->Size();
|
| }
|
|
|
| bool TraceLog::BufferIsFull() const {
|
|
|