Still.Profiler (Still v0.8.0) View Source

Implements a profiler that keeps track of the time each file takes to render.

A file can be rendered or compiled multiple times in the same stage (e.g when being included), so the compiler hashes each file and metadata to distinguish between those.

After the compilation is finished, a profiler report is generated and can be accessed at /profiler.html.

The profiler should only run in development and can be disabled by setting:

config :still, profiler: false

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Recompiles the HTML page. Should only be used for internal maintenance.

Save a Still.SourceFile and the rendering/compilation delta.

Return a timestamp of the current system time in milliseconds.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Recompiles the HTML page. Should only be used for internal maintenance.

Save a Still.SourceFile and the rendering/compilation delta.

Return a timestamp of the current system time in milliseconds.