Home Applications ZProfile

ZProfile

This application is not supported by InterSystems Corporation. Please be notified that you use it at your own risk.
4.5
1 reviews
0
Awards
310
Views
8
IPM installs
3
1
Details
Releases
Reviews  (1)
Issues
Articles  (2)
This app has a demo View
Profiler for InterSystems ObjectScript

What's new in this version

Fixed some errors

InterSystems ObjectScript code Profiler

This project, is aimed at enhancing the visibility and understanding of command execution in InterSystems IRIS. It allows users to run any given command and dynamically generates an execution tree that traces the command line-by-line. Additionally, it collects and displays critical metrics for each line, including execution time, enabling a deeper understanding of performance considerations.

Features

  • Line-by-line execution and tracking of InterSystems commands.
  • Dynamic generation of an execution tree visualizing the command’s flow.
  • Collection of metrics including execution time for each line.
  • Intuitive UI to view executed code, collected metrics, and delve into the execution stack.
  • Switch betwen executions on the same stack level.

Installation

zpm "install zprofile"

Usage

Important note, that the execution takes much longer (hundreds times) under analyzis than without it

To build an execution report, run command like this, put a target command as a first parameter.
This command has to be called from the terminal, it’s the only way it can get trace, due to the limitation of ZBreak command used in the project

Do ##class(caretdev.zprofile.main).Trace("Do ##class(Some.Class).Method()")")
Do ##class(caretdev.zprofile.main).Trace("Do Some^Routine")

Go to http://localhost:8773/zprofile/index.html (change the port to a correct one)

Select the execution report
executions list

On this page, will be shown the code of the first executed method, and it’s possible to dive lower by the stack by clicking on arrow down, or return back by stack with arrow up, return back by stack is also available from the the menu.

code

The last line on any stack level, shows the total for each metric through execution, and cells has a gradient filled by the percentage of the value comparing to the total value.

It is possible to select which columns to display, to help select columns total values shown in the dialog too.

columns

Made with
Install
zpm install zprofile download archive
Version
1.0.206 Jul, 2023
Category
Developer Environment
Works with
InterSystems IRIS
First published
02 Jul, 2023
Last checked by moderator
17 Sep, 2024Works