Clojure Miniprofiler is a simple, but effective profiling tool for your web
application.
It tells you what is slow about a web page both in production (for admins
only), and in development, as you load the page.
It's a port of the original .Net library to Clojure, utilizing the
JavaScript and
Ack, minor date error there.
I've been running Clojure Miniprofiler in production since July 2014, and
it's proved both very stable, and extremely useful.
On Wednesday, 4 February 2015 13:16:43 UTC, tcrayford wrote:
>
> Clojure Miniprofiler is a simple, but effective profiling tool for your
> w
Hi,
I just tried it and it looks really useful if one wants to track down speed
bumps in web apps.
I wonder if I understand the usege correctly, right now I did something
like this:
(defn admin-page [params]
(let [users (cjmp/trace "all users" (db/get-all-users (get params :filter)))]
(l
Hi Sven,
So typically I'd put that stuff *much* lower in the database layer -
ideally as a wrapper around whatever database driver you're using, but that
kind of idea is roughly right.
I am considering releasing a set of libraries for miniprofiler that let it
wrap e.g. a jdbc driver, redis cli
Hi Tom,
I am not arguing about the performance impact here, however, it's nice to
know there hardly is one. My only concern is that the code reader has to
mentally parse away the trace calls, which puts a small burden on him and
which might be less if it was in some kind of a macro, fn or metad
Hi Sven,
Right, but you want to push miniprofiler further down the app than that.
For example, with datomic I have a yeller.datomic.instrumented namespace
that exports the same vars as datomic.api, but wraps them in miniprofiler
tracing. From the point of view of my application code, the only t
That sounds really nice, exactly the way one wants it too I think :-)
Am Sonntag, 8. Februar 2015 20:37:43 UTC+1 schrieb tcrayford:
>
> Hi Sven,
>
> Right, but you want to push miniprofiler further down the app than that.
> For example, with datomic I have a yeller.datomic.instrumented namespace
Sven,
As a followup, I have an example library that wraps liza (a key-value store
library) in miniprofiler calls
here: http://yellerapp.com/opensource/clojure-miniprofiler-liza.html
Similar could be accomplished for pretty much any other database library
out there, though it depends on how goo