remove hooks.
This commit is contained in:
parent
70edf28235
commit
337991d33c
@ -41,7 +41,6 @@
|
|||||||
'cflags_cc': [
|
'cflags_cc': [
|
||||||
'-fexceptions',
|
'-fexceptions',
|
||||||
'-frtti',
|
'-frtti',
|
||||||
# '-finstrument-functions',
|
|
||||||
],
|
],
|
||||||
'libraries': [
|
'libraries': [
|
||||||
# standard libs:
|
# standard libs:
|
||||||
|
|||||||
@ -2367,41 +2367,6 @@ jstx_to_ctx(const Local<Object> entry, CTransaction& tx, uint256 hashBlock) {
|
|||||||
}
|
}
|
||||||
#endif
|
#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
|
* Init
|
||||||
*/
|
*/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user