The statement, as in Lieb-Loss Analysis, for the Layer cake representation is:
Let $\nu$ be Borel measure on $[0,\infty)$ such that $\phi(t) := \nu([0,t))$ is finite for each $t > 0$. Now let $(\Omega,\Sigma,\mu)$ be a sigma-finite measure space and $f$ any nonnegative measurable function on $\Omega$. Then $$\int_\Omega\phi(f(x))\mu(dx) = \int_0^\infty \mu( f > t)\nu(dt).$$
For instance if $\phi(t) = t$ then we get just the integral of $f$. If $\phi(t) = \sin(t)$ then we get a $\cos(t)$ on the right side (avoiding all the signed measures details). This examples lead me to think that we can rewrite the equality as $$\int_\Omega \phi(f(x))\mu(dx) = \int_0^\infty \mu(f>t)\phi'(t)dt.$$In some way I could see $d\nu(t) = d\phi(t) = \phi'(t)dt$ but perhaps I am abusing notation.
Thanks in advance.