public Config SaveToFile()

in JetBrains.Profiler.SelfApi/src/DotTrace.cs [68:80]


      public Config SaveToFile(string snapshotFile, bool overwrite = false)
      {
        if (SnapshotDir != null)
          throw new InvalidOperationException("SaveToFile and SaveToDir are mutually exclusive.");
        if (snapshotFile == null) throw new ArgumentNullException(nameof(snapshotFile));

        if (Directory.Exists(snapshotFile))
          throw new InvalidOperationException($"The directory {snapshotFile} was specified. If you want to save files to this directory, use {nameof(SaveToDir)} instead");
        SnapshotFile = snapshotFile;
        IsOverwriteSnapshot = overwrite;

        return this;
      }