You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. window.glob_trc0 = window.glob_trc0 || {
  2. cnt:0,
  3. }
  4. window.glob_t2 = window.glob_t2 || {
  5. cnt:0,
  6. setTimeout,
  7. }
  8. function timeout_mod(){
  9. glob_t2.setTimeout.apply(this, arguments);
  10. clog("setTimeout MOD")
  11. }
  12. function dec_timeout(){
  13. setTimeout = timeout_mod
  14. }
  15. function undec_timeout(){
  16. setTimeout = glob_t2.setTimeout
  17. }
  18. function toggle_dec_timeout(){
  19. if (glob_t2.setTimeout == setTimeout){
  20. dec_timeout()
  21. } else {
  22. undec_timeout()
  23. }
  24. }
  25. function start_profile(){
  26. console.profile("a")
  27. }
  28. function end_profile(){
  29. console.profileEnd()
  30. }
  31. /*
  32. var _temp = setTimeout;
  33. setTimeout = function() {
  34. _temp.apply(this, arguments);
  35. glob_trc0.cnt += 1
  36. // alert(arguments[0]);
  37. };
  38. */