public static void LoadSnapshot(string profilerIdentifier, string filename) { if (filename == null) { throw new ArgumentNullException("filename"); } if (profilerIdentifier == null) { throw new ArgumentNullException("profilerIdentifier"); } IProfiler prof = GetProfiler(profilerIdentifier); if (prof != null) { IProfilingSnapshot snapshot = prof.Load(filename); if (snapshot != null) { profilingSnapshots.Add(snapshot); return; } } MessageService.ShowError(GettextCatalog.GetString("Unable to load profiling snapshot '{0}'."), filename); }