ted_p
09/18/2025, 9:50 PMCeligo AI
09/18/2025, 9:50 PMAI generated answer (using internal Slack threads):To view data on script execution length for all of your scripts at once, you can use the Application Performance Management (APM) SuiteApp provided by NetSuite. This tool provides a comprehensive view of script performance and usage metrics, and can help you identify which scripts are causing the most lag. Here are the steps to access it: 1. Navigate to Customization > Performance > Application Performance Management. 2. Click on SuiteScript under the Performance Analysis section. 3. You will see a list of all scripts running in your account, along with their execution times. You can sort this list by execution time to quickly identify the scripts that are taking the longest to run. Additionally, you can use the Script Performance page to view detailed information about the performance of a specific script. This page provides a breakdown of the script's execution time, including the time spent in each function and the time spent waiting for SuiteTalk web services and RESTlet requests to complete. If you need more detailed logging, you can add custom logging to your scripts and use an external service like Splunk to store and analyze these logs. This can provide a longer history of log entries and make them searchable. Another option is to use a timing function in your scripts to log the time elapsed for different sections of code. This can help you identify which parts of your scripts are taking the longest to execute. For example, you can use the following code snippet in SuiteScript:
javascript
var start = new Date();
// Your script code here...
var end = new Date();
var executionTime = end - start;
log.debug('Execution time', executionTime);
This will log the execution time of your script in milliseconds.
Remember, these methods should be used in combination to get a comprehensive view of your script performance.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
09/18/2025, 9:51 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83203131
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.829162717
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.825866818
Celigo AI
09/18/2025, 9:51 PM