private static string GetSaveToFilePath()

in JetBrains.Profiler.SelfApi/src/DotMemory.cs [317:327]


    private static string GetSaveToFilePath(Config config)
    {
      if (config.WorkspaceFile != null)
        return config.WorkspaceFile;

      var workspaceName = $"{Process.GetCurrentProcess().ProcessName}.{DateTime.Now:yyyy-MM-ddTHH-mm-ss.fff}.dmw";
      if (config.WorkspaceDir != null)
        return Path.Combine(config.WorkspaceDir, workspaceName);

      return Path.Combine(Path.GetTempPath(), workspaceName);
    }