Here's a real example of using the ChromeTrace library to take a look at what a triggered task is up to, and examine what we can see in the tracing tool. I'm going to add some tracing to Update analytics batch code and the 6 minute limit
Here's the code for one of the triggered functions before I add tracing
Close off the overall timer, and dump the results to a drive file
Let's dig into the addPlusOnes function - this is recursive so it should be interesting to see how that works
Injecting some tracing gives this.
We can see a nice pattern of a site pages and its children, because of this
And tracing allows you to zoom in...
Click on some bar to get some details
Note also that we had a counter going
The light gray histogram at the top shows the counters
And we can click at any point in time to look at the counter
Let's simulate an error and see what we get - it failed at the pink bar
Services > Desktop Liberation - the definitive resource for Google Apps Script and Microsoft Office automation > chrome > tracing >