Clockwork

Request profiling in the browser devtools while debug is on.

On this page

Requirements

Install the Clockwork library and the browser extension (Chrome or Firefox):

composer require itsgoingd/clockwork

Panels

Panel Shows
Page url, view, title, published, hidden, locked, uuid and the full _data.json as a table
Request method, path, HTMX flag, URL params, GET and POST data
Session logged-in state, username, session ID and any non-internal session keys
Config the full merged config, only while debug is true

Debug only

Clockwork records POST bodies, session data and the config, and /clockwork/ serves them back to anyone, so it stays inert unless debug is on. With debug off it registers no listeners, storage, headers or route. It does nothing under the CLI.

Storage

Requests are stored as files in data/cache/clockwork/, which the web server must be able to write. The folder is part of the cache: nothing in it is backed up and cache:clear empties it. Manage it on its own with phlat clockwork:status, clockwork:prune and clockwork:clear.