Try to load Time::HiRes, and use generate profile id.
If Time::HiRes does not exists, use time().
edited example PSGI app
added document