Fully featured low overhead profiler for Java EE and Java SE platforms.
Easy-to-use performance and memory .NET profiler for Windows, Linux and macOS.
Secure and easy profiling in cloud, containers and clustered environments.
Performance monitoring and profiling of Jenkins, Bamboo, TeamCity, Gradle, Maven, Ant and JUnit.

Lasting events and point events

Event kinds

Each table row contains information on some event.

There are two kinds of events:

  • Lasting event: this is something which lasts in time. At some point in time it starts, and at a later point in time it ends. The lasting event duration can be measured as end time minus start time.
  • Point event: this is some "fact" which just happens at some point of time. The concept of duration is not applicable for the point events.

Which kind to use?

Whether particular event is lasting event or point event, depends on your tasks.

For example, you may think of method Foo.bar() execution as of a lasting event, which starts when the method enters and ends when the method exits, if you are interested to know how long the method execution takes, or to discover other events which happen while Foo.bar() is running, e.g. what kind of I/O it performs, whether it accesses database or other resources etc.

In case you are only interested in Foo.bar() invocations as in a fact, you may think of them as of point events.

Technical detail

On table creation, you decide which kind of events the table is intended for, specifying appropriate parameters of the table object constructor.

So, each table can store either of the event kinds.

A lasting event starts when table row is created with Table.createRow() and ends when the row is closed with Table.closeRow(). Table.closeRow() must not be used for tables with point events.

Thread, stack trace and/or times are recorded for all events on row creation, and also on row closing for lasting events.

For lasting events recorded as some table rows it is possible to find rows in other tables which correspond to events which happened during the lasting event. For example, if processing of JSP pages is recorded as lasting events in some table, and database access events are recorded in another table, it will be possible to learn which SQL activities happen during particular JSP page processing.

YourKit uses cookies and other tracking technologies to improve your browsing experience on our website, to show you personalized content and targeted ads, to analyze our website traffic, and to understand where our visitors are coming from.

By browsing our website, you consent to our use of cookies and other tracking technologies in accordance with the Privacy Policy.