Endless.ProfileProbe

Fields

None

Methods

class

start (file, line, function, name)

stop ()

Details

class Endless.ProfileProbe

An opaque identifier for a profiling probe.

New in version 0.6.

classmethod start(file, line, function, name)
Parameters:
  • file (str) – the source file for the probe, typically represented by %__FILE__

  • line (int) – the line in the source file, typically represented by %__LINE__

  • function (str) – the function for the probe, typically represented by %G_STRFUNC

  • name (str) – a unique name for the probe

Returns:

a profile probe identifier; use Endless.ProfileProbe.stop() to stop the profiling on the returned probe

Return type:

Endless.ProfileProbe

Starts a profiling probe for name, creating it if necessary.

New in version 0.6.

stop()

Stops a profiling probe started using Endless.ProfileProbe.start().

New in version 0.6.