mpicovsimple.h

来自「fortran并行计算包」· C头文件 代码 · 共 44 行

H
44
字号
/* -*- Mode: C++; c-basic-offset:4 ; -*- *//* *  (C) 2004 by Argonne National Laboratory. *      See COPYRIGHT in top-level directory. * * This is a *very* simple tool for basic coverage analysis.   * This is intended as a stop-gap until gcov works with the C++ files * used in the MPICH2 binding of C++ (as of 2/23/2004, gcov aborts when * processing the coverage files produced by g++ for the MPICH2 C++ * binding). *//* style: c++ header */#ifndef MPIX_SIMPLECOVERAGE_H#define MPIX_SIMPLECOVERAGE_Htypedef struct _covinfo {    char   *name;               // Routine name (or block)    int    argcount;            // Number of arguments     int    count;               // Number of times called    char   *sourceFile;         // Name of source file    int    firstLine, lastLine; // source lines for block    struct _covinfo *fLink, *bLink;} covinfo;class MPIX_Coverage {private:  covinfo *head;  covinfo *findOrInsert( const char name[], int argcount );   // return an initialize record public:    // New and delete    MPIX_Coverage(void) { head = 0; }    //    void Init( void );    void Add( const char name[], int argcnt, const char file[], int line );    void AddEnd( const char name[], int argcnt, const char file[], int line );    int FileMerge( const char filename[] );};extern MPIX_Coverage MPIR_Cov;#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?