HPCToolkit
CallPath-Profile.cpp File Reference
#include <iostream>
#include <typeinfo>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <sstream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <stdint.h>
#include <unistd.h>
#include <inttypes.h>
#include <alloca.h>
#include <linux/limits.h>
#include <include/gcc-attr.h>
#include <include/uint.h>
#include "CallPath-Profile.hpp"
#include "FileError.hpp"
#include "NameMappings.hpp"
#include "Struct-Tree.hpp"
#include <lib/xml/xml.hpp>
#include <lib/prof-lean/hpcfmt.h>
#include <lib/prof-lean/hpcrun-fmt.h>
#include <lib/prof-lean/hpcrun-metric.h>
#include <lib/support/diagnostics.h>
#include <lib/support/FileUtil.hpp>
#include <lib/support/Logic.hpp>
#include <lib/support/RealPathMgr.hpp>
#include <lib/support/StrUtil.hpp>
#include <lib/support/ExprEval.hpp>
#include <lib/support/VarMap.hpp>
Include dependency graph for CallPath-Profile.cpp:

Go to the source code of this file.

Classes

class  Prof::CallPath::StringCompare
 

Namespaces

 Prof
 
 Prof::CallPath
 

Macros

#define __STDC_LIMIT_MACROS   /* stdint; locate here for CentOS 5/gcc 4.1.2) */
 
#define __STDC_FORMAT_MACROS
 
#define DBG   0
 
#define DBG_DATA   0
 
#define MAX_PREFIX_CHARS   64
 

Functions

void prof_abort (int error_code)
 
static const char * Prof::CallPath::getFileName (Struct::ANode *strct)
 
static void Prof::CallPath::writeXML_help (std::ostream &os, const char *entry_nm, Struct::Tree *structure, const Struct::ANodeFilter *filter, int type, bool remove_redundancy)
 
static bool Prof::CallPath::writeXML_FileFilter (const Struct::ANode &x, long GCC_ATTR_UNUSED type)
 
static bool Prof::CallPath::writeXML_ProcFilter (const Struct::ANode &x, long GCC_ATTR_UNUSED type)
 
static std::pair< Prof::CCT::ADynNode *, Prof::CCT::ADynNode * > cct_makeNode (Prof::CallPath::Profile &prof, const hpcrun_fmt_cct_node_t &nodeFmt, uint rFlags, const std::string &ctxtStr)
 
static void fmt_cct_makeNode (hpcrun_fmt_cct_node_t &n_fmt, const Prof::CCT::ANode &n, epoch_flags_t flags)
 

Variables

std::map< uint, uintProf::m_mapFileIDs
 
std::map< uint, uintProf::m_mapProcIDs
 
std::map< uint, uintProf::m_pairFakeLoadModule
 
static std::map< std::string, uint, StringCompare > Prof::CallPath::m_mapFiles
 
static std::map< std::string, uint, StringCompare > Prof::CallPath::m_mapProcs
 

Macro Definition Documentation

◆ __STDC_FORMAT_MACROS

#define __STDC_FORMAT_MACROS

Definition at line 85 of file CallPath-Profile.cpp.

◆ __STDC_LIMIT_MACROS

#define __STDC_LIMIT_MACROS   /* stdint; locate here for CentOS 5/gcc 4.1.2) */

Definition at line 62 of file CallPath-Profile.cpp.

◆ DBG

#define DBG   0

Definition at line 136 of file CallPath-Profile.cpp.

◆ DBG_DATA

#define DBG_DATA   0

Definition at line 137 of file CallPath-Profile.cpp.

◆ MAX_PREFIX_CHARS

#define MAX_PREFIX_CHARS   64

Definition at line 138 of file CallPath-Profile.cpp.

Function Documentation

◆ cct_makeNode()

static std::pair< Prof::CCT::ADynNode *, Prof::CCT::ADynNode * > cct_makeNode ( Prof::CallPath::Profile prof,
const hpcrun_fmt_cct_node_t nodeFmt,
uint  rFlags,
const std::string &  ctxtStr 
)
static

Definition at line 1884 of file CallPath-Profile.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fmt_cct_makeNode()

static void fmt_cct_makeNode ( hpcrun_fmt_cct_node_t n_fmt,
const Prof::CCT::ANode n,
epoch_flags_t  flags 
)
static

Definition at line 2053 of file CallPath-Profile.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ prof_abort()

void prof_abort ( int  error_code)

Definition at line 98 of file main.cpp.

Here is the caller graph for this function: