public Config SaveToDir()

in JetBrains.Profiler.SelfApi/src/DotTrace.cs [87:99]


      public Config SaveToDir(string dirPath)
      {
        if (SnapshotFile != null)
          throw new InvalidOperationException("SaveToDir and SaveToFile are mutually exclusive.");
        if (dirPath == null) throw new ArgumentNullException(nameof(dirPath));

        if (!Directory.Exists(dirPath))
          throw new InvalidOperationException("The specified directory does not exist.");

        SnapshotDir = dirPath;

        return this;
      }