Profiler#

class geetools.ee_profiler.Profiler#

A profiler context manager for Earth Engine Python API.

Examples

import ee, geetools
from geetools.utils import initialize_documentation

initialize_documentation()

with ee.geetools.Profiler() as p:
    ee.Number(3.14).add(0.00159).getInfo()
    res = p.profile
res
profile: dict | None = None#

The profile data as a dictionary.

Methods#

__enter__()

Enter the context manager.

__exit__(*args)

Exit the context manager.