no test, no run :D

I tested below one-liner.
---
$ rm -rf /tmp/profile; mkdir /tmp/profile; plackup -Ilib -e 'enable_if{ 1 } Profiler::NYTProf, enable_profile => sub {1}, after_profile => sub { my ($self, $env) = @_; system "nytprofhtml", "-f", $self->report_path($env), "-o", ($self->profile_dir)->($self, $env)."/nytprof", "--open"; }, profile_dir => sub {"/tmp/profile"}; sub { [200,[],["ok"]] }'
---
Try to load Time::HiRes, and use generate profile id.
If Time::HiRes does not exists, use time().
edited example PSGI app
added document
Merge pull request #2 from bayashi/more_flexible

オプション群を大幅拡張