Lines Matching defs:observer
5 #include "src/heap/allocation-observer.h"
13 void AllocationCounter::AddAllocationObserver(AllocationObserver* observer) {
16 [observer](const AllocationObserverCounter& aoc) {
17 return aoc.observer_ == observer;
23 pending_added_.push_back(AllocationObserverCounter(observer, 0, 0));
27 intptr_t step_size = observer->GetNextStepSize();
30 observers_.push_back(AllocationObserverCounter(observer, current_counter_,
43 void AllocationCounter::RemoveAllocationObserver(AllocationObserver* observer) {
45 [observer](const AllocationObserverCounter& aoc) {
46 return aoc.observer_ == observer;
51 DCHECK_EQ(pending_removed_.count(observer), 0);
52 pending_removed_.insert(observer);