Measurement of execution time of built-in functions for Spreadsheet

后端 未结 3 1652
情话喂你
情话喂你 2020-12-06 08:16

Are there methods to measure the execution time when built-in functions completed for Spreadsheet? When I use several built-in functions (For example, IMPORTHTML and IMPORTX

3条回答
  •  情话喂你
    2020-12-06 08:32

    To add another option you can do:

    function myFunction() {
      console.time('someFunction');
    
      // do something
    
      console.timeEnd('someFunction');
    }
    

    And then look at the Stackdriver logs for the Function Execution.

    Example output would be:

    Jul 3, 2020, 1:03:00 AM Debug someFunction: 80ms

提交回复
热议问题