Flect.Timer

Provides convenience functions for timing various passes in the compiler.

Source

Functions summary

Functions

create_session(title)

Creates a timing session. Returns an opaque session object.

title must be a binary containing the title of this timing session.

Source

end_pass(session, name)

Ends the current timing pass in the given session. Returns the updated session.

session must be a session object with an in-progress pass. name must be the name given to the start_pass/2 function previously.

Source

finish_session(session)

Ends a given timing session. Returns the finished session object.

session must be a session object with no in-progress passes.

Source

format_session(arg1)

Formats a finished session in a user-presentable way. Returns the resulting binary containing the formatted session.

session must be a finished session object.

Source

start_pass(session, name)

Starts a pass in the given session. Returns the updated session.

session must be a session object. name must be a binary containing the name of this timing pass.

Source