Analyzing performance
You can see how quickly your application operates by running a few lines of code. The code you use is as follows:
Transcript show: (
Time millisecondsToRun: [
<your script>.
]) printString; cr.
You can add this code to a script that you want to test. Or, you can run this code in a System Transcript or Workspace window. For example, type the following into a Workspace window:
Transcript show: (
Time millisecondsToRun:
<MyView> new openWidget.
]) printString; cr.
Replace <MyView> with the name of a visual part class that is in your image, and execute the code. The System Transcript prints the number of milliseconds it took to open the class.
You can use the millisecondsToRun: method to analyze your code's performance. You can also use the performance analysis tools, which create in-depth profiles of your code's runtime performance. The profiles help you find bottlenecks in your applications.
Refer to Smalltalk User Guide for more information about analyzing the performance of code.
Last modified date: 07/23/2020