| 117 | } |
| 118 | |
| 119 | Allocator* ev_allocator() { |
| 120 | static Allocator* ev_alloc = DisableEVAllocatorFromEnvironment() ? |
| 121 | cpu_allocator() : AllocatorFactoryRegistry::singleton()->GetEVAllocator(); |
| 122 | |
| 123 | if (ev_alloc && cpu_allocator_collect_full_stats && |
| 124 | !ev_alloc->TracksAllocationSizes()) { |
| 125 | ev_alloc = new TrackingAllocator(ev_alloc, true); |
| 126 | } |
| 127 | return ev_alloc; |
| 128 | } |
| 129 | |
| 130 | Allocator* gpu_ev_allocator() { |
| 131 | static Allocator* ev_alloc = |