Warning, /include/llvm/ProfileData/MIBEntryDef.inc is written in an unsupported language. File is not indexed.
0001 /*===-- MemEntryDef.inc - MemProf profiling runtime macros -*- C++ -*-======== *\
0002 |*
0003 |* Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
0004 |* See https://llvm.org/LICENSE.txt for license information.
0005 |* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
0006 |*
0007 \*===----------------------------------------------------------------------===*/
0008 /*
0009 * This file defines the macros for memprof profiling data structures.
0010 * Eg. usage to define the memprof meminfoblock struct:
0011 *
0012 * struct MemInfoBlock {
0013 * #define MIBEntryDef(NameTag, Name, Type) Type Name;
0014 * #include MIBEntryDef.inc
0015 * #undef MIBEntryDef
0016 * };
0017 *
0018 * This file has two identical copies. The primary copy lives in LLVM and
0019 * the other one sits in compiler-rt/include/profile directory. To make changes
0020 * in this file, first modify the primary copy and copy it over to compiler-rt.
0021 * Testing of any change in this file can start only after the two copies are
0022 * synced up.
0023 *
0024 \*===----------------------------------------------------------------------===*/
0025 #ifndef MIBEntryDef
0026 #define MIBEntryDef(NameTag, Name, Type)
0027 #endif
0028
0029 MIBEntryDef(AllocCount = 1, AllocCount, uint32_t)
0030 MIBEntryDef(TotalAccessCount = 2, TotalAccessCount, uint64_t)
0031 MIBEntryDef(MinAccessCount = 3, MinAccessCount, uint64_t)
0032 MIBEntryDef(MaxAccessCount = 4, MaxAccessCount, uint64_t)
0033 MIBEntryDef(TotalSize = 5, TotalSize, uint64_t)
0034 MIBEntryDef(MinSize = 6, MinSize, uint32_t)
0035 MIBEntryDef(MaxSize = 7, MaxSize, uint32_t)
0036 MIBEntryDef(AllocTimestamp = 8, AllocTimestamp, uint32_t)
0037 MIBEntryDef(DeallocTimestamp = 9, DeallocTimestamp, uint32_t)
0038 MIBEntryDef(TotalLifetime = 10, TotalLifetime, uint64_t)
0039 MIBEntryDef(MinLifetime = 11, MinLifetime, uint32_t)
0040 MIBEntryDef(MaxLifetime = 12, MaxLifetime, uint32_t)
0041 MIBEntryDef(AllocCpuId = 13, AllocCpuId, uint32_t)
0042 MIBEntryDef(DeallocCpuId = 14, DeallocCpuId, uint32_t)
0043 MIBEntryDef(NumMigratedCpu = 15, NumMigratedCpu, uint32_t)
0044 MIBEntryDef(NumLifetimeOverlaps = 16, NumLifetimeOverlaps, uint32_t)
0045 MIBEntryDef(NumSameAllocCpu = 17, NumSameAllocCpu, uint32_t)
0046 MIBEntryDef(NumSameDeallocCpu = 18, NumSameDeallocCpu, uint32_t)
0047 MIBEntryDef(DataTypeId = 19, DataTypeId, uint64_t)
0048 MIBEntryDef(TotalAccessDensity = 20, TotalAccessDensity, uint64_t)
0049 MIBEntryDef(MinAccessDensity = 21, MinAccessDensity, uint32_t)
0050 MIBEntryDef(MaxAccessDensity = 22, MaxAccessDensity, uint32_t)
0051 MIBEntryDef(TotalLifetimeAccessDensity = 23, TotalLifetimeAccessDensity, uint64_t)
0052 MIBEntryDef(MinLifetimeAccessDensity = 24, MinLifetimeAccessDensity, uint32_t)
0053 MIBEntryDef(MaxLifetimeAccessDensity = 25, MaxLifetimeAccessDensity, uint32_t)
0054 MIBEntryDef(AccessHistogramSize = 26, AccessHistogramSize, uint32_t)
0055 MIBEntryDef(AccessHistogram = 27, AccessHistogram, uintptr_t)