| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_QUIC_PLATFORM_IMPL_QUIC_ESTIMATE_MEMORY_USAGE_IMPL_H_ |
| 6 #define NET_QUIC_PLATFORM_IMPL_QUIC_ESTIMATE_MEMORY_USAGE_IMPL_H_ |
| 7 |
| 8 #include <cstddef> |
| 9 |
| 10 #include "base/trace_event/memory_usage_estimator.h" |
| 11 |
| 12 namespace net { |
| 13 |
| 14 template <class T> |
| 15 size_t QuicEstimateMemoryUsageImpl(const T& object) { |
| 16 return base::trace_event::EstimateMemoryUsage(object); |
| 17 } |
| 18 |
| 19 } // namespace net |
| 20 |
| 21 #endif // NET_QUIC_PLATFORM_IMPL_QUIC_ESTIMATE_MEMORY_USAGE_IMPL_H_ |
| OLD | NEW |