Allow profile results to be written to a file.
[bluesky.git] / nfs3 / nfsd.c
index 6c975f2..e95ac7c 100644 (file)
@@ -57,6 +57,10 @@ int main(int argc, char *argv[])
     if (key == NULL)
         key = "";
 
+    const char *profile_output = getenv("BLUESKY_PROFILE_OUT");
+    if (profile_output != NULL)
+        bluesky_profile_set_output(fopen(profile_output, "a"));
+
     store = bluesky_store_new(target);
     fs = bluesky_init_fs("export", store, key);