Lalit Maganti | caed37e | 2018-06-01 03:03:08 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2017 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #ifndef SRC_TRACE_PROCESSOR_TRACE_STORAGE_H_ |
| 18 | #define SRC_TRACE_PROCESSOR_TRACE_STORAGE_H_ |
| 19 | |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 20 | #include <array> |
Lalit Maganti | caed37e | 2018-06-01 03:03:08 +0100 | [diff] [blame] | 21 | #include <deque> |
Isabelle Taylor | 47328cf | 2018-06-12 14:33:59 +0100 | [diff] [blame] | 22 | #include <map> |
Lalit Maganti | caed37e | 2018-06-01 03:03:08 +0100 | [diff] [blame] | 23 | #include <string> |
| 24 | #include <unordered_map> |
| 25 | #include <vector> |
| 26 | |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 27 | #include "perfetto/base/logging.h" |
Primiano Tucci | 2da5d2e | 2018-08-10 14:23:31 +0100 | [diff] [blame] | 28 | #include "perfetto/base/string_view.h" |
Hector Dearman | c833993 | 2018-08-10 11:22:46 +0100 | [diff] [blame] | 29 | #include "perfetto/base/utils.h" |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 30 | |
Lalit Maganti | caed37e | 2018-06-01 03:03:08 +0100 | [diff] [blame] | 31 | namespace perfetto { |
| 32 | namespace trace_processor { |
| 33 | |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 34 | // UniquePid is an offset into |unique_processes_|. This is necessary because |
| 35 | // Unix pids are reused and thus not guaranteed to be unique over a long |
| 36 | // period of time. |
| 37 | using UniquePid = uint32_t; |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 38 | |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 39 | // UniqueTid is an offset into |unique_threads_|. Necessary because tids can |
| 40 | // be reused. |
| 41 | using UniqueTid = uint32_t; |
| 42 | |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 43 | // StringId is an offset into |string_pool_|. |
| 44 | using StringId = size_t; |
| 45 | |
Isabelle Taylor | 14674d4 | 2018-09-07 11:33:11 +0100 | [diff] [blame^] | 46 | // A map containing timestamps and the cpu frequency set at that time. |
| 47 | using CpuFreq = |
| 48 | std::deque<std::pair<uint64_t /*timestamp*/, uint32_t /*freq*/>>; |
| 49 | |
Lalit Maganti | caed37e | 2018-06-01 03:03:08 +0100 | [diff] [blame] | 50 | // Stores a data inside a trace file in a columnar form. This makes it efficient |
| 51 | // to read or search across a single field of the trace (e.g. all the thread |
| 52 | // names for a given CPU). |
| 53 | class TraceStorage { |
| 54 | public: |
Isabelle Taylor | 47328cf | 2018-06-12 14:33:59 +0100 | [diff] [blame] | 55 | TraceStorage(); |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 56 | TraceStorage(const TraceStorage&) = delete; |
| 57 | |
| 58 | virtual ~TraceStorage(); |
Isabelle Taylor | 47328cf | 2018-06-12 14:33:59 +0100 | [diff] [blame] | 59 | |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 60 | struct Stats { |
| 61 | uint64_t mismatched_sched_switch_tids_ = 0; |
| 62 | }; |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 63 | |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 64 | // Information about a unique process seen in a trace. |
| 65 | struct Process { |
Primiano Tucci | b75dcee | 2018-08-08 12:21:36 +0100 | [diff] [blame] | 66 | explicit Process(uint32_t p) : pid(p) {} |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 67 | uint64_t start_ns = 0; |
| 68 | uint64_t end_ns = 0; |
| 69 | StringId name_id = 0; |
Primiano Tucci | b75dcee | 2018-08-08 12:21:36 +0100 | [diff] [blame] | 70 | uint32_t pid = 0; |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 71 | }; |
| 72 | |
| 73 | // Information about a unique thread seen in a trace. |
| 74 | struct Thread { |
Primiano Tucci | b75dcee | 2018-08-08 12:21:36 +0100 | [diff] [blame] | 75 | explicit Thread(uint32_t t) : tid(t) {} |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 76 | uint64_t start_ns = 0; |
| 77 | uint64_t end_ns = 0; |
| 78 | StringId name_id = 0; |
| 79 | UniquePid upid = 0; |
Primiano Tucci | b75dcee | 2018-08-08 12:21:36 +0100 | [diff] [blame] | 80 | uint32_t tid = 0; |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 81 | }; |
Isabelle Taylor | 3dd366c | 2018-06-22 16:21:41 +0100 | [diff] [blame] | 82 | |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 83 | class SlicesPerCpu { |
| 84 | public: |
| 85 | inline void AddSlice(uint64_t start_ns, |
| 86 | uint64_t duration_ns, |
Isabelle Taylor | 14674d4 | 2018-09-07 11:33:11 +0100 | [diff] [blame^] | 87 | UniqueTid utid, |
| 88 | uint64_t cycles) { |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 89 | start_ns_.emplace_back(start_ns); |
| 90 | durations_.emplace_back(duration_ns); |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 91 | utids_.emplace_back(utid); |
Isabelle Taylor | 14674d4 | 2018-09-07 11:33:11 +0100 | [diff] [blame^] | 92 | cycles_.emplace_back(cycles); |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 93 | } |
| 94 | |
Isabelle Taylor | 47328cf | 2018-06-12 14:33:59 +0100 | [diff] [blame] | 95 | size_t slice_count() const { return start_ns_.size(); } |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 96 | |
Isabelle Taylor | 47328cf | 2018-06-12 14:33:59 +0100 | [diff] [blame] | 97 | const std::deque<uint64_t>& start_ns() const { return start_ns_; } |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 98 | |
Isabelle Taylor | 47328cf | 2018-06-12 14:33:59 +0100 | [diff] [blame] | 99 | const std::deque<uint64_t>& durations() const { return durations_; } |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 100 | |
Isabelle Taylor | 68e4219 | 2018-06-19 16:19:31 +0100 | [diff] [blame] | 101 | const std::deque<UniqueTid>& utids() const { return utids_; } |
| 102 | |
Isabelle Taylor | 14674d4 | 2018-09-07 11:33:11 +0100 | [diff] [blame^] | 103 | const std::deque<uint64_t>& cycles() const { return cycles_; } |
| 104 | |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 105 | private: |
| 106 | // Each vector below has the same number of entries (the number of slices |
| 107 | // in the trace for the CPU). |
| 108 | std::deque<uint64_t> start_ns_; |
| 109 | std::deque<uint64_t> durations_; |
Isabelle Taylor | 68e4219 | 2018-06-19 16:19:31 +0100 | [diff] [blame] | 110 | std::deque<UniqueTid> utids_; |
Isabelle Taylor | 14674d4 | 2018-09-07 11:33:11 +0100 | [diff] [blame^] | 111 | std::deque<uint64_t> cycles_; |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 112 | }; |
Isabelle Taylor | 68e4219 | 2018-06-19 16:19:31 +0100 | [diff] [blame] | 113 | |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 114 | class NestableSlices { |
| 115 | public: |
| 116 | inline void AddSlice(uint64_t start_ns, |
| 117 | uint64_t duration_ns, |
| 118 | UniqueTid utid, |
| 119 | StringId cat, |
| 120 | StringId name, |
Primiano Tucci | b75dcee | 2018-08-08 12:21:36 +0100 | [diff] [blame] | 121 | uint8_t depth, |
| 122 | uint64_t stack_id, |
| 123 | uint64_t parent_stack_id) { |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 124 | start_ns_.emplace_back(start_ns); |
| 125 | durations_.emplace_back(duration_ns); |
| 126 | utids_.emplace_back(utid); |
| 127 | cats_.emplace_back(cat); |
| 128 | names_.emplace_back(name); |
| 129 | depths_.emplace_back(depth); |
Primiano Tucci | b75dcee | 2018-08-08 12:21:36 +0100 | [diff] [blame] | 130 | stack_ids_.emplace_back(stack_id); |
| 131 | parent_stack_ids_.emplace_back(parent_stack_id); |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 132 | } |
| 133 | |
| 134 | size_t slice_count() const { return start_ns_.size(); } |
| 135 | const std::deque<uint64_t>& start_ns() const { return start_ns_; } |
| 136 | const std::deque<uint64_t>& durations() const { return durations_; } |
| 137 | const std::deque<UniqueTid>& utids() const { return utids_; } |
| 138 | const std::deque<StringId>& cats() const { return cats_; } |
| 139 | const std::deque<StringId>& names() const { return names_; } |
| 140 | const std::deque<uint8_t>& depths() const { return depths_; } |
Primiano Tucci | b75dcee | 2018-08-08 12:21:36 +0100 | [diff] [blame] | 141 | const std::deque<uint64_t>& stack_ids() const { return stack_ids_; } |
| 142 | const std::deque<uint64_t>& parent_stack_ids() const { |
| 143 | return parent_stack_ids_; |
| 144 | } |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 145 | |
| 146 | private: |
| 147 | std::deque<uint64_t> start_ns_; |
| 148 | std::deque<uint64_t> durations_; |
| 149 | std::deque<UniqueTid> utids_; |
| 150 | std::deque<StringId> cats_; |
| 151 | std::deque<StringId> names_; |
| 152 | std::deque<uint8_t> depths_; |
Primiano Tucci | b75dcee | 2018-08-08 12:21:36 +0100 | [diff] [blame] | 153 | std::deque<uint64_t> stack_ids_; |
| 154 | std::deque<uint64_t> parent_stack_ids_; |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 155 | }; |
| 156 | |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 157 | void ResetStorage(); |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 158 | |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 159 | void AddSliceToCpu(uint32_t cpu, |
| 160 | uint64_t start_ns, |
| 161 | uint64_t duration_ns, |
Isabelle Taylor | 14674d4 | 2018-09-07 11:33:11 +0100 | [diff] [blame^] | 162 | UniqueTid utid, |
| 163 | uint64_t cycles); |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 164 | |
Primiano Tucci | b75dcee | 2018-08-08 12:21:36 +0100 | [diff] [blame] | 165 | UniqueTid AddEmptyThread(uint32_t tid) { |
| 166 | unique_threads_.emplace_back(tid); |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 167 | return static_cast<UniqueTid>(unique_threads_.size() - 1); |
| 168 | } |
Isabelle Taylor | 47328cf | 2018-06-12 14:33:59 +0100 | [diff] [blame] | 169 | |
Primiano Tucci | b75dcee | 2018-08-08 12:21:36 +0100 | [diff] [blame] | 170 | UniquePid AddEmptyProcess(uint32_t pid) { |
| 171 | unique_processes_.emplace_back(pid); |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 172 | return static_cast<UniquePid>(unique_processes_.size() - 1); |
| 173 | } |
Isabelle Taylor | 3dd366c | 2018-06-22 16:21:41 +0100 | [diff] [blame] | 174 | |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 175 | void AddMismatchedSchedSwitch() { ++stats_.mismatched_sched_switch_tids_; } |
Lalit Maganti | caed37e | 2018-06-01 03:03:08 +0100 | [diff] [blame] | 176 | |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 177 | // Return an unqiue identifier for the contents of each string. |
| 178 | // The string is copied internally and can be destroyed after this called. |
Primiano Tucci | 2da5d2e | 2018-08-10 14:23:31 +0100 | [diff] [blame] | 179 | StringId InternString(base::StringView); |
Isabelle Taylor | 47328cf | 2018-06-12 14:33:59 +0100 | [diff] [blame] | 180 | |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 181 | Process* GetMutableProcess(UniquePid upid) { |
Primiano Tucci | b75dcee | 2018-08-08 12:21:36 +0100 | [diff] [blame] | 182 | PERFETTO_DCHECK(upid > 0 && upid < unique_processes_.size()); |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 183 | return &unique_processes_[upid]; |
| 184 | } |
Isabelle Taylor | 3dd366c | 2018-06-22 16:21:41 +0100 | [diff] [blame] | 185 | |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 186 | Thread* GetMutableThread(UniqueTid utid) { |
Primiano Tucci | b75dcee | 2018-08-08 12:21:36 +0100 | [diff] [blame] | 187 | PERFETTO_DCHECK(utid > 0 && utid < unique_threads_.size()); |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 188 | return &unique_threads_[utid]; |
| 189 | } |
Isabelle Taylor | 3dd366c | 2018-06-22 16:21:41 +0100 | [diff] [blame] | 190 | |
Lalit Maganti | caed37e | 2018-06-01 03:03:08 +0100 | [diff] [blame] | 191 | // Reading methods. |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 192 | const SlicesPerCpu& SlicesForCpu(uint32_t cpu) const { |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 193 | PERFETTO_DCHECK(cpu < cpu_events_.size()); |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 194 | return cpu_events_[cpu]; |
Lalit Maganti | caed37e | 2018-06-01 03:03:08 +0100 | [diff] [blame] | 195 | } |
| 196 | |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 197 | const std::string& GetString(StringId id) const { |
| 198 | PERFETTO_DCHECK(id < string_pool_.size()); |
| 199 | return string_pool_[id]; |
| 200 | } |
| 201 | |
Lalit Maganti | e9d4053 | 2018-06-29 13:15:06 +0100 | [diff] [blame] | 202 | const Process& GetProcess(UniquePid upid) const { |
Primiano Tucci | b75dcee | 2018-08-08 12:21:36 +0100 | [diff] [blame] | 203 | PERFETTO_DCHECK(upid > 0 && upid < unique_processes_.size()); |
Isabelle Taylor | 47328cf | 2018-06-12 14:33:59 +0100 | [diff] [blame] | 204 | return unique_processes_[upid]; |
| 205 | } |
| 206 | |
Lalit Maganti | e9d4053 | 2018-06-29 13:15:06 +0100 | [diff] [blame] | 207 | const Thread& GetThread(UniqueTid utid) const { |
Primiano Tucci | b75dcee | 2018-08-08 12:21:36 +0100 | [diff] [blame] | 208 | PERFETTO_DCHECK(utid > 0 && utid < unique_threads_.size()); |
Isabelle Taylor | 68e4219 | 2018-06-19 16:19:31 +0100 | [diff] [blame] | 209 | return unique_threads_[utid]; |
| 210 | } |
| 211 | |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 212 | const NestableSlices& nestable_slices() const { return nestable_slices_; } |
| 213 | NestableSlices* mutable_nestable_slices() { return &nestable_slices_; } |
| 214 | |
Isabelle Taylor | 14674d4 | 2018-09-07 11:33:11 +0100 | [diff] [blame^] | 215 | // Virtual for testing. |
| 216 | virtual void PushCpuFreq(uint64_t timestamp, |
| 217 | uint32_t cpu, |
| 218 | uint32_t new_freq) { |
| 219 | auto& freqs = cpu_freq_[cpu]; |
| 220 | PERFETTO_DCHECK(freqs.empty() || timestamp > freqs.back().first); |
| 221 | freqs.emplace_back(timestamp, new_freq); |
| 222 | } |
| 223 | |
| 224 | const CpuFreq& GetFreqForCpu(uint32_t cpu) { return cpu_freq_[cpu]; } |
| 225 | |
Isabelle Taylor | e7003fb | 2018-07-17 11:39:01 +0100 | [diff] [blame] | 226 | // |unique_processes_| always contains at least 1 element becuase the 0th ID |
| 227 | // is reserved to indicate an invalid process. |
| 228 | size_t process_count() const { return unique_processes_.size() - 1; } |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 229 | |
Isabelle Taylor | e7003fb | 2018-07-17 11:39:01 +0100 | [diff] [blame] | 230 | // |unique_threads_| always contains at least 1 element becuase the 0th ID |
| 231 | // is reserved to indicate an invalid thread. |
| 232 | size_t thread_count() const { return unique_threads_.size() - 1; } |
| 233 | |
Hector Dearman | 1232336 | 2018-08-09 16:09:28 +0100 | [diff] [blame] | 234 | // Number of interned strings in the pool. Includes the empty string w/ ID=0. |
| 235 | size_t string_count() const { return string_pool_.size(); } |
| 236 | |
Lalit Maganti | caed37e | 2018-06-01 03:03:08 +0100 | [diff] [blame] | 237 | private: |
Isabelle Taylor | a0a2297 | 2018-08-03 12:06:12 +0100 | [diff] [blame] | 238 | TraceStorage& operator=(const TraceStorage&) = default; |
| 239 | |
Primiano Tucci | 2da5d2e | 2018-08-10 14:23:31 +0100 | [diff] [blame] | 240 | using StringHash = uint64_t; |
Lalit Maganti | caed37e | 2018-06-01 03:03:08 +0100 | [diff] [blame] | 241 | |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 242 | // Metadata counters for events being added. |
| 243 | Stats stats_; |
| 244 | |
Lalit Maganti | caed37e | 2018-06-01 03:03:08 +0100 | [diff] [blame] | 245 | // One entry for each CPU in the trace. |
Hector Dearman | c833993 | 2018-08-10 11:22:46 +0100 | [diff] [blame] | 246 | std::array<SlicesPerCpu, base::kMaxCpus> cpu_events_; |
Lalit Maganti | caed37e | 2018-06-01 03:03:08 +0100 | [diff] [blame] | 247 | |
Isabelle Taylor | 14674d4 | 2018-09-07 11:33:11 +0100 | [diff] [blame^] | 248 | // One map containing frequencies for every CPU in the trace. The map contains |
| 249 | // timestamps and the cpu frequency value at that time. |
| 250 | std::array<CpuFreq, base::kMaxCpus> cpu_freq_; |
| 251 | |
Lalit Maganti | caed37e | 2018-06-01 03:03:08 +0100 | [diff] [blame] | 252 | // One entry for each unique string in the trace. |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 253 | std::deque<std::string> string_pool_; |
Lalit Maganti | caed37e | 2018-06-01 03:03:08 +0100 | [diff] [blame] | 254 | |
| 255 | // One entry for each unique string in the trace. |
Lalit Maganti | 35622b7 | 2018-06-06 12:03:11 +0100 | [diff] [blame] | 256 | std::unordered_map<StringHash, StringId> string_index_; |
Isabelle Taylor | 47328cf | 2018-06-12 14:33:59 +0100 | [diff] [blame] | 257 | |
Isabelle Taylor | 47328cf | 2018-06-12 14:33:59 +0100 | [diff] [blame] | 258 | // One entry for each UniquePid, with UniquePid as the index. |
Isabelle Taylor | 3dd366c | 2018-06-22 16:21:41 +0100 | [diff] [blame] | 259 | std::deque<Process> unique_processes_; |
Isabelle Taylor | 68e4219 | 2018-06-19 16:19:31 +0100 | [diff] [blame] | 260 | |
Isabelle Taylor | 68e4219 | 2018-06-19 16:19:31 +0100 | [diff] [blame] | 261 | // One entry for each UniqueTid, with UniqueTid as the index. |
Isabelle Taylor | 3dd366c | 2018-06-22 16:21:41 +0100 | [diff] [blame] | 262 | std::deque<Thread> unique_threads_; |
Primiano Tucci | 0d72a31 | 2018-08-07 14:42:45 +0100 | [diff] [blame] | 263 | |
| 264 | // Slices coming from userspace events (e.g. Chromium TRACE_EVENT macros). |
| 265 | NestableSlices nestable_slices_; |
Lalit Maganti | caed37e | 2018-06-01 03:03:08 +0100 | [diff] [blame] | 266 | }; |
| 267 | |
| 268 | } // namespace trace_processor |
| 269 | } // namespace perfetto |
| 270 | |
| 271 | #endif // SRC_TRACE_PROCESSOR_TRACE_STORAGE_H_ |