chromium/third_party/perfetto/src/trace_processor/importers/fuchsia/fuchsia_trace_utils.cc

/*
 * Copyright (C) 2019 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#include "src/trace_processor/importers/fuchsia/fuchsia_trace_utils.h"

namespace perfetto {
namespace trace_processor {
namespace fuchsia_trace_utils {

namespace {
constexpr uint32_t kInlineStringMarker =;
constexpr uint32_t kInlineStringLengthMask =;
}  // namespace

bool IsInlineString(uint32_t string_ref) {}

bool IsInlineThread(uint32_t thread_ref) {}

// Converts a tick count to nanoseconds. Returns -1 if the result would not
// fit in a nonnegative int64_t. Negative timestamps are not allowed by the
// Fuchsia trace format. Also returns -1 if ticks_per_second is zero.
int64_t TicksToNs(uint64_t ticks, uint64_t ticks_per_second) {}

Variadic ArgValue::ToStorageVariadic(TraceStorage* storage) const {}

size_t RecordCursor::WordIndex() {}

void RecordCursor::SetWordIndex(size_t index) {}

bool RecordCursor::ReadTimestamp(uint64_t ticks_per_second, int64_t* ts_out) {}

bool RecordCursor::ReadInlineString(uint32_t string_ref_or_len,
                                    base::StringView* string_out) {}

bool RecordCursor::ReadInlineThread(FuchsiaThreadInfo* thread_out) {}

bool RecordCursor::ReadInt64(int64_t* out) {}

bool RecordCursor::ReadUint64(uint64_t* out) {}

bool RecordCursor::ReadDouble(double* out) {}

bool RecordCursor::ReadBlob(size_t num_bytes,
                            std::vector<uint8_t>& append_buffer) {}

bool RecordCursor::ReadWords(size_t num_words, const uint8_t** data_out) {}

}  // namespace fuchsia_trace_utils
}  // namespace trace_processor
}  // namespace perfetto