• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2018 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 #include "src/trace_processor/storage_columns.h"
18 
19 namespace perfetto {
20 namespace trace_processor {
21 
StorageColumn(std::string col_name,bool hidden)22 StorageColumn::StorageColumn(std::string col_name, bool hidden)
23     : col_name_(col_name), hidden_(hidden) {}
24 StorageColumn::~StorageColumn() = default;
25 
StringPoolAccessor(const std::deque<StringId> * deque,const StringPool * string_pool)26 StringPoolAccessor::StringPoolAccessor(const std::deque<StringId>* deque,
27                                        const StringPool* string_pool)
28     : deque_(deque), string_pool_(string_pool) {}
29 StringPoolAccessor::~StringPoolAccessor() = default;
30 
TsEndAccessor(const std::deque<int64_t> * ts,const std::deque<int64_t> * dur)31 TsEndAccessor::TsEndAccessor(const std::deque<int64_t>* ts,
32                              const std::deque<int64_t>* dur)
33     : ts_(ts), dur_(dur) {}
34 TsEndAccessor::~TsEndAccessor() = default;
35 
RowIdAccessor(TableId table_id)36 RowIdAccessor::RowIdAccessor(TableId table_id) : table_id_(table_id) {}
37 RowIdAccessor::~RowIdAccessor() = default;
38 
39 RowAccessor::RowAccessor() = default;
40 RowAccessor::~RowAccessor() = default;
41 
42 }  // namespace trace_processor
43 }  // namespace perfetto
44