Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
In debug mode, send perf metrics in custom http header #593
Currently we can log our metrics in debug mode in the console (or the apache logs if one does not use the php dev server).
I think it would be convenient to also send this data in a custom http header when in debug mode, this way we can see on the beta server or our VPSs wat the perf of a page is without having to ssh and look at the logs. HTTP headers are also more convenient than outputing directly this infoirmation in the view because the views we need most performance from are the json api and we can't ourput data there.
I quickly checked and it's easy to do, see in the screenshot below the result in firebug, I called the .header Transvision-perf.
I have something tthat works now but maybe I should let it to a new contributor? Do you like the idea?