Class: ViewWatcher
Defined in: watchers/view.watcher.ts:36
ViewWatcher tracks template rendering operations including performance, cache hits, and output size metrics for various template formats.
Implements
OnModuleInitOnModuleDestroy
Constructors
Constructor
new ViewWatcher(
collector,nestlensConfig,viewEngine?):ViewWatcher
Defined in: watchers/view.watcher.ts:41
Parameters
collector
nestlensConfig
viewEngine?
ViewEngineLike
Returns
ViewWatcher
Methods
onModuleDestroy()
onModuleDestroy():
void
Defined in: watchers/view.watcher.ts:93
Gives the engine its render method back.
The engine belongs to the application and outlives this module, so without
this the host renders through a watcher whose collector is gone — and a
process that builds the module more than once against the same engine, as
tests and nest start --hmr do, wraps each round on top of the last:
measured at three lifecycles, one render recorded three entries.
Returns
void
Implementation of
OnModuleDestroy.onModuleDestroy
onModuleInit()
onModuleInit():
void
Defined in: watchers/view.watcher.ts:53
Returns
void
Implementation of
OnModuleInit.onModuleInit