19 #ifndef STRESS_TEST_H__
20 #define STRESS_TEST_H__
29 #include <sys/timeb.h>
30 #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS)
31 #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64
33 #define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL
65 int gettimeofday(
struct timeval *tv,
struct timezone *tz)
68 unsigned __int64 tmpres = 0;
73 GetSystemTimeAsFileTime(&ft);
75 tmpres |= ft.dwHighDateTime;
77 tmpres |= ft.dwLowDateTime;
80 tmpres -= DELTA_EPOCH_IN_MICROSECS;
82 tv->tv_sec = (long)(tmpres / 1000000UL);
83 tv->tv_usec = (long)(tmpres % 1000000UL);
94 tz->tz_minuteswest = _timezone / 60;
95 tz->tz_dsttime = _daylight;
116 void run(
const std::vector<std::string>& filenames);
152 static bool normalize_names(ASTNode* pNode,
const Reaction* pReaction,
const Model* pModel);
175 std::map<int, std::vector<CNormalFraction*> >
mSBOMap;
187 #endif // STRESS_TEST_H__
void normalizeFunctionDB()
std::set< double > mProcessTimes
std::map< int, std::vector< CNormalFraction * > > mSBOMap
static bool normalize_names(ASTNode *pNode, const Reaction *pReaction, const Model *pModel)
unsigned int mNumExceededCOPASIFunctions
unsigned int mNumExceeded
unsigned int mNumFailedCOPASIFunctions
unsigned int mNumExpressions
CCopasiDataModel * mpDataModel
unsigned int mNumExceededFunctions
void normalizeMath(const std::string &filename)
void normalizeAndSimplifyExpressions(const Model *pModel)
unsigned int mDifferentNormalform
unsigned int mNumMassActionsKinetics
unsigned int mNumUnmappedKineticExpressions
unsigned int mNumCOPASIFunctions
std::map< std::string, unsigned int > mExpressionMappings
unsigned int mNumMappedKineticExpressions
void run(const std::vector< std::string > &filenames)
std::multimap< std::string, CNormalFraction * > mNormalizedCOPASIFunctionDefinitions
unsigned int mNumKineticFunctions
unsigned int mNumFunctionDefinitions
unsigned int mNumFailedFunctions
unsigned int mNumConstantFluxKinetics
void normalizeAndSimplifyFunctionDefinitions(const Model *pModel)
std::vector< std::string > mUnreadableFiles
std::vector< std::pair< std::string, CNormalFraction * > > mNormalizedFunctionDefinitions
std::vector< CNormalFraction * > mNormalizedExpressions
std::map< CNormalFraction *, int > mUnknownCategories