| 1 |
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
| 2 |
// vi: set et ts=4 sw=2 sts=2: |
| 3 |
// SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root |
| 4 |
// SPDX-License-Identifier: LGPL-2.1-or-later |
| 5 |
/****************************************************************************/ |
| 6 |
/* */ |
| 7 |
/* DDD V1.1 */ |
| 8 |
/* */ |
| 9 |
/* File: dddaddon.h */ |
| 10 |
/* */ |
| 11 |
/* Purpose: header file for ddd additional functionality */ |
| 12 |
/* i.e.: */ |
| 13 |
/* 1) Statistical evaluation and performance measures */ |
| 14 |
/* */ |
| 15 |
/* Author: Klaus Birken */ |
| 16 |
/* Rechenzentrum Uni Stuttgart */ |
| 17 |
/* Universitaet Stuttgart */ |
| 18 |
/* Allmandring 30 */ |
| 19 |
/* 70550 Stuttgart */ |
| 20 |
/* internet: [email protected] */ |
| 21 |
/* */ |
| 22 |
/* */ |
| 23 |
/* History: 95/01/18 kb begin */ |
| 24 |
/* */ |
| 25 |
/* Remarks: */ |
| 26 |
/* */ |
| 27 |
/****************************************************************************/ |
| 28 |
|
| 29 |
#ifndef __DDDADDON__ |
| 30 |
#define __DDDADDON__ |
| 31 |
|
| 32 |
START_UGDIM_NAMESPACE |
| 33 |
|
| 34 |
/* |
| 35 |
#ifdef __cplusplus |
| 36 |
extern "C" { |
| 37 |
#endif |
| 38 |
*/ |
| 39 |
|
| 40 |
/****************************************************************************/ |
| 41 |
/* */ |
| 42 |
/* definition of constants */ |
| 43 |
/* */ |
| 44 |
/****************************************************************************/ |
| 45 |
|
| 46 |
|
| 47 |
enum { |
| 48 |
DDD_MODULE_MGR, |
| 49 |
DDD_MODULE_XFER, |
| 50 |
DDD_MODULE_IDENT, |
| 51 |
DDD_MODULE_IF, |
| 52 |
DDD_MODULES |
| 53 |
}; |
| 54 |
|
| 55 |
|
| 56 |
/* for DDD_MODULE_IDENT */ |
| 57 |
/* times */ |
| 58 |
enum { |
| 59 |
T_PREPARE, |
| 60 |
T_PREPARE_SORT, |
| 61 |
T_QSORT_TUPEL, |
| 62 |
T_RESOLVE_DEP, |
| 63 |
T_QSORT_LOI, |
| 64 |
T_BUILD_GRAPH, |
| 65 |
T_CONSTRUCT_ARRAY, |
| 66 |
T_COMM_AND_IDENT, |
| 67 |
T_BUILD_IF |
| 68 |
}; |
| 69 |
/* numbers */ |
| 70 |
enum { |
| 71 |
N_PARTNERS |
| 72 |
}; |
| 73 |
|
| 74 |
|
| 75 |
/* for DDD_MODULE_IF */ |
| 76 |
/* times */ |
| 77 |
enum { |
| 78 |
T_CREATE_COLLECT, |
| 79 |
T_CREATE_SORT, |
| 80 |
T_CREATE_BUILD, |
| 81 |
T_CREATE_SHORTCUT, |
| 82 |
T_CREATE_COMM |
| 83 |
}; |
| 84 |
/* numbers */ |
| 85 |
/*enum { |
| 86 |
}; |
| 87 |
*/ |
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
/* for DDD_MODULE_XFER */ |
| 92 |
/* times */ |
| 93 |
enum { |
| 94 |
T_XFER_PREP_CMDS, |
| 95 |
T_XFER_PREP_MSGS, |
| 96 |
T_XFER_PACK_SEND, |
| 97 |
T_XFER_WHILE_COMM, |
| 98 |
T_XFER_WAIT_RECV, |
| 99 |
T_XFER_UNPACK, |
| 100 |
T_XFER_PREP_CPL, |
| 101 |
T_XFER_CPLMSG, |
| 102 |
T_XFER_BUILD_IF |
| 103 |
}; |
| 104 |
/* numbers */ |
| 105 |
/*enum { |
| 106 |
}; |
| 107 |
*/ |
| 108 |
|
| 109 |
|
| 110 |
/****************************************************************************/ |
| 111 |
/* */ |
| 112 |
/* definition of exported global variables */ |
| 113 |
/* */ |
| 114 |
/****************************************************************************/ |
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
/****************************************************************************/ |
| 120 |
/* */ |
| 121 |
/* declaration of DDD-addon functional interface */ |
| 122 |
/* */ |
| 123 |
/****************************************************************************/ |
| 124 |
|
| 125 |
|
| 126 |
/* |
| 127 |
Statistic Evaluation and Performance Measurements |
| 128 |
*/ |
| 129 |
double DDD_StatClock (int module, int index); |
| 130 |
long DDD_StatCount (int module, int index); |
| 131 |
const char * DDD_StatClockDesc (int module, int index); |
| 132 |
const char * DDD_StatCountDesc (int module, int index); |
| 133 |
|
| 134 |
|
| 135 |
/* |
| 136 |
#ifdef __cplusplus |
| 137 |
} |
| 138 |
#endif |
| 139 |
*/ |
| 140 |
|
| 141 |
END_UGDIM_NAMESPACE |
| 142 |
|
| 143 |
#endif |