Home
last modified time | relevance | path

Searched refs:EstimateMemoryUsage (Results 1 – 6 of 6) sorted by relevance

/external/libchrome/base/trace_event/
Dmemory_usage_estimator.h77 auto EstimateMemoryUsage(const T& object)
78 -> decltype(object.EstimateMemoryUsage());
83 size_t EstimateMemoryUsage(const std::basic_string<C, T, A>& string);
88 size_t EstimateMemoryUsage(const std::array<T, N>& array);
91 size_t EstimateMemoryUsage(T (&array)[N]);
94 size_t EstimateMemoryUsage(const T* array, size_t array_length);
99 size_t EstimateMemoryUsage(const std::unique_ptr<T, D>& ptr);
102 size_t EstimateMemoryUsage(const std::unique_ptr<T[], D>& array,
108 size_t EstimateMemoryUsage(const std::shared_ptr<T>& ptr);
113 size_t EstimateMemoryUsage(const std::pair<F, S>& pair);
[all …]
Dmemory_usage_estimator_unittest.cc33 size_t EstimateMemoryUsage() const { in EstimateMemoryUsage() function in base::trace_event::__anon67c521fc0111::Data
72 EXPECT_EQ(string.capacity() + 1, EstimateMemoryUsage(string)); in TEST()
78 EstimateMemoryUsage(string)); in TEST()
85 EXPECT_EQ(170u, EstimateMemoryUsage(array)); in TEST()
91 EXPECT_EQ(170u, EstimateMemoryUsage(array)); in TEST()
100 EXPECT_EQ(70u, EstimateMemoryUsage(array, 7)); in TEST()
109 EXPECT_EQ(0u, EstimateMemoryUsage(ptr)); in TEST()
115 EXPECT_EQ_32_64(21u, 25u, EstimateMemoryUsage(ptr)); in TEST()
121 EXPECT_EQ(sizeof(void*), EstimateMemoryUsage(ptr)); in TEST()
130 EXPECT_EQ(280u, EstimateMemoryUsage(ptr, 7)); in TEST()
[all …]
Dmemory_usage_estimator.cc10 template size_t EstimateMemoryUsage(const std::string&);
11 template size_t EstimateMemoryUsage(const string16&);
Dtrace_event_memory_overhead.cc88 Add(kStdString, EstimateMemoryUsage(str)); in AddString()
/external/libchrome/libchrome_tools/patch/
Dvalues.patch19 -size_t Value::EstimateMemoryUsage() const {
22 - return base::trace_event::EstimateMemoryUsage(string_value_);
24 - return base::trace_event::EstimateMemoryUsage(binary_value_);
26 - return base::trace_event::EstimateMemoryUsage(dict_);
28 - return base::trace_event::EstimateMemoryUsage(list_);
34 +// size_t Value::EstimateMemoryUsage() const {
37 +// return base::trace_event::EstimateMemoryUsage(string_value_);
39 +// return base::trace_event::EstimateMemoryUsage(binary_value_);
41 +// return base::trace_event::EstimateMemoryUsage(dict_);
43 +// return base::trace_event::EstimateMemoryUsage(list_);
[all …]
/external/libchrome/base/containers/
Dmru_cache_unittest.cc390 EXPECT_GT(trace_event::EstimateMemoryUsage(cache), in TEST()
391 trace_event::EstimateMemoryUsage(key)); in TEST()