internal SimpleProfilerSource(string name, LoadingProfiler profiler) : base(name, 1, profiler) { }
internal ProfilerSource(LoadingProfiler profiler, Sink sink) : base() { this.sink = sink; this.events = GetEvents(profiler); }
internal static FastList <LoadingProfiler.Event> GetEvents(LoadingProfiler profiler) => (FastList <LoadingProfiler.Event>)EventsField.GetValue(profiler);
internal ProfilerSource(string name, int len, LoadingProfiler profiler) : this(profiler, new Sink(name, len)) { }
internal ProfilerSource(LoadingProfiler profiler, Sink sink, bool alwaysLoading = false) : base() { this.sink = sink; this.events = GetEvents(profiler); this.alwaysLoading = alwaysLoading; }