Changeset f63b13 in git
- Timestamp:
- Feb 12, 2013, 6:38:23 PM (10 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'f875bbaccd0831e36aaed09ff6adeb3eb45aeb94')
- Children:
- 787ec4ed0bff77b2fd30601d7e99562b7f71fb7a
- Parents:
- 643877cb2b7ba9e8b5c640ed05630fa816f821a0
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-02-12 18:38:23+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-02-13 17:13:27+01:00
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/schreyer.lib
r643877c rf63b13 1428 1428 // exportto(Schreyer, Syzextra::p_Content); 1429 1429 1430 exportto(Schreyer, Syzextra::ProfilerStart); exportto(Schreyer, Syzextra::ProfilerStop); 1431 1430 1432 exportto(Schreyer, Syzextra::Tail); 1431 1433 … … 1466 1468 // exportto(Schreyer, Syzextra_g::p_Content); 1467 1469 1470 exportto(Schreyer, Syzextra_g::ProfilerStart); exportto(Schreyer, Syzextra_g::ProfilerStop); 1471 1468 1472 exportto(Schreyer, Syzextra_g::Tail); 1469 1473 -
dyn_modules/syzextra/mod_main.cc
r643877c rf63b13 31 31 #include "DebugPrint.h" 32 32 #include "myNF.h" 33 34 #ifdef HAVE_GOOGLE_PROFILER 35 #include <google/profiler.h> 36 #endif // HAVE_GOOGLE_PROFILER 37 38 39 #include <stdio.h> 40 #include <stdlib.h> 41 #include <string.h> 42 33 43 34 44 extern void pISUpdateComponents(ideal F, const intvec *const V, const int MIN, const ring r); … … 158 168 } 159 169 160 BOOLEAN noop(leftv __res, leftv /*__v*/)170 static BOOLEAN noop(leftv __res, leftv /*__v*/) 161 171 { 162 172 NoReturn(__res); … … 164 174 } 165 175 176 static BOOLEAN _ProfilerStart(leftv __res, leftv h) 177 { 178 NoReturn(__res); 179 #ifdef HAVE_GOOGLE_PROFILER 180 if( h!= NULL && h->Typ() == STRING_CMD ) 181 { 182 const char* name = (char*)(h->Data()); 183 assume( name != NULL ); 184 ProfilerStart(name); 185 } else 186 WerrorS("ProfilerStart requires a string [name] argument"); 187 #else 188 WarnS("Sorry no google profiler support (undefined HAVE_GOOGLE_PROFILER)..."); 189 // return TRUE; // ? 190 #endif // #ifdef HAVE_GOOGLE_PROFILER 191 return FALSE; 192 (void)h; 193 } 194 static BOOLEAN _ProfilerStop(leftv __res, leftv /*__v*/) 195 { 196 NoReturn(__res); 197 #ifdef HAVE_GOOGLE_PROFILER 198 ProfilerStop(); 199 #else 200 WarnS("Sorry no google profiler support (undefined HAVE_GOOGLE_PROFILER)..."); 201 // return TRUE; // ? 202 #endif // #ifdef HAVE_GOOGLE_PROFILER 203 return FALSE; 204 } 166 205 167 206 static inline number jjLONG2N(long d) … … 976 1015 ADD(psModulFunctions, currPack->libname, "Tail", FALSE, Tail); 977 1016 978 979 1017 ADD(psModulFunctions, currPack->libname, "ISUpdateComponents", FALSE, ISUpdateComponents); 980 1018 ADD(psModulFunctions, currPack->libname, "SetInducedReferrence", FALSE, SetInducedReferrence); … … 983 1021 ADD(psModulFunctions, currPack->libname, "MakeInducedSchreyerOrdering", FALSE, MakeInducedSchreyerOrdering); 984 1022 ADD(psModulFunctions, currPack->libname, "MakeSyzCompOrdering", FALSE, MakeSyzCompOrdering); 1023 1024 ADD(psModulFunctions, currPack->libname, "ProfilerStart", FALSE, _ProfilerStart); ADD(psModulFunctions, currPack->libname, "ProfilerStop", FALSE, _ProfilerStop ); 985 1025 986 1026 ADD(psModulFunctions, currPack->libname, "noop", FALSE, noop); 987 988 1027 ADD(psModulFunctions, currPack->libname, "idPrepare", FALSE, idPrepare); 989 1028 ADD(psModulFunctions, currPack->libname, "reduce_syz", FALSE, reduce_syz);
Note: See TracChangeset
for help on using the changeset viewer.