remove hooks.

This commit is contained in:
Christopher Jeffrey 2014-09-30 16:11:18 -07:00
parent 70edf28235
commit 337991d33c
2 changed files with 0 additions and 36 deletions

View File

@ -41,7 +41,6 @@
'cflags_cc': [
'-fexceptions',
'-frtti',
# '-finstrument-functions',
],
'libraries': [
# standard libs:

View File

@ -2367,41 +2367,6 @@ jstx_to_ctx(const Local<Object> entry, CTransaction& tx, uint256 hashBlock) {
}
#endif
/**
* Hooks
*/
#if 0
static int last_height = -1;
extern "C" void __attribute__ ((constructor))
trace_begin(void) {
return;
}
extern "C" void __attribute__ ((destructor))
trace_end(void) {
return;
}
extern "C" void
__cyg_profile_func_enter(void *func, void *caller) {
return;
}
extern "C" void
__cyg_profile_func_exit(void *func, void *caller) {
int cur_height = chainActive.Height();
if (cur_height != last_height) {
printf("new block\n");
last_height = cur_height;
}
// if (func == &AcceptBlock || caller == &AcceptBlock || func == AcceptBlock || caller == AcceptBlock) {
// printf("accept block\n");
// }
}
#endif
/**
* Init
*/