llvm/llvm/tools/llvm-jitlink/llvm-jitlink-statistics.cpp

//===-- llvm-jitlink-statistics.cpp -- gathers/reports JIT-linking stats --===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file contains the code for enabling, gathering and reporting
// llvm-jitlink statistics.
//
//===----------------------------------------------------------------------===//

#include "llvm-jitlink.h"
#include "llvm/Support/CommandLine.h"

#define DEBUG_TYPE

usingnamespacellvm;
usingnamespacellvm::jitlink;
usingnamespacellvm::orc;

static cl::opt<bool> ShowPrePruneTotalBlockSize(
    "pre-prune-total-block-size",
    cl::desc("Total size of all blocks (including zero-fill) in all "
             "graphs (pre-pruning)"),
    cl::init(false));

static cl::opt<bool> ShowPostFixupTotalBlockSize(
    "post-fixup-total-block-size",
    cl::desc("Total size of all blocks (including zero-fill) in all "
             "graphs (post-fixup)"),
    cl::init(false));

class StatsPlugin : public ObjectLinkingLayer::Plugin {};

void StatsPlugin::publish(raw_ostream &OS) {}

static uint64_t computeTotalBlockSizes(LinkGraph &G) {}

Error StatsPlugin::recordPrePruneStats(LinkGraph &G) {}

Error StatsPlugin::recordPostFixupStats(LinkGraph &G) {}

namespace llvm {
void enableStatistics(Session &S, bool UsingOrcRuntime) {}
} // namespace llvm