Environment Flags

NESMIK_BACKEND

Specify the backend. See Backends section for more details.

NESMIK_MAX_NESTING_LEVEL

Default: -1

Specify the maximum nesting level you want to expose to the backends when using nested regions. E.g. NESMIK_MAX_NESTING_LEVEL=2 will only allow the first and second layer of the nested region stack to be seen by the backends.

Special values:

  • NESMIK_MAX_NESTING_LEVEL=0: This disables nesmik.

  • NESMIK_MAX_NESTING_LEVEL=-1: Allows all stack-depths of nested regions to pass to the backends.

NESMIK_BLACKLIST

Default: ""

Specify a comma sperated list of regions that should not be passed to the backends. They will still be part of the internal stack, but the backend will not get called when they are started or stopped.

export NESMIK_BLACKLIST="Top,child-1"
export NESMIK_BACKEND=Default

NESMIK_TALP_ENUMERATE

Default: ""

Specify a comma-separated list of region names that should be enumerated when using the TALP backend. For each region in the list, the first call to RegionStart will register the region as name-1, the second call as name-2, etc. The same enumerated name is used for both RegionStart and RegionStop to ensure the region instance matches.

export NESMIK_TALP_ENUMERATE="foo,bar"
export NESMIK_BACKEND=TALP

In this example:

  • First call to region “foo” → starts “foo-1”, stops “foo-1”

  • Second call to region “foo” → starts “foo-2”, stops “foo-2”

  • First call to region “bar” → starts “bar-1”, stops “bar-1”

  • etc.