Closed hagna closed 8 years ago
Please review this @rminnich and @sevki
-1 There's a couple problems here. It's too broad a PR -- you bundle in changing import, with adding profile, with some other stuff.
You need a PR to fix the imports first.
To set up profiling, consider: add a Profiling member to stub.Server adding a "serverprofiling" flag in stub.go, - in server.go, you can test that flag in NewServer, and, if set, enable profiling use runtime.SetFinalizer to output the info when that server ends.
So:
do not commit
You do ufs -cpuprofile A and you get files labelled A127.0.0.1:43306 etc.