I suggest adding a call to debug_print_backtrace at the beginning of your function:
debug_print_backtrace(0, 3);
It will tell you where the function was called from.
If it prints too many lines, you can limit that by passing a parameter:
debug_print_backtrace(0, 3); // would print only 3 lines at each call