chromium/third_party/perfetto/src/trace_redaction/process_thread_timeline.cc

/*
 * Copyright (C) 2024 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_redaction/process_thread_timeline.h"

#include <algorithm>
#include <cstddef>
#include <cstdint>

#include "perfetto/base/logging.h"

namespace perfetto::trace_redaction {
namespace {
// Limit the number of iterations to avoid an infinite loop. 10 is a generous
// number of iterations.
constexpr size_t kMaxSearchDepth =;

bool OrderByPid(const ProcessThreadTimeline::Event& left,
                const ProcessThreadTimeline::Event& right) {}

}  // namespace

void ProcessThreadTimeline::Append(const Event& event) {}

void ProcessThreadTimeline::Sort() {}

const ProcessThreadTimeline::Event* ProcessThreadTimeline::GetOpeningEvent(
    uint64_t ts,
    int32_t pid) const {}

bool ProcessThreadTimeline::PidConnectsToUid(uint64_t ts,
                                             int32_t pid,
                                             uint64_t uid) const {}

const ProcessThreadTimeline::Event* ProcessThreadTimeline::QueryLeftMax(
    uint64_t ts,
    int32_t pid,
    Event::Type type) const {}

}  // namespace perfetto::trace_redaction