Package io.flutter.util
Class TraceSection
- java.lang.Object
-
- io.flutter.util.TraceSection
-
public final class TraceSection extends Object
-
-
Constructor Summary
Constructors Constructor Description TraceSection()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidbegin(String sectionName)Wraps Trace.beginSection to ensure that the line length stays below 127 code units.static voidend()Wraps Trace.endSection.
-
-
-
Method Detail
-
begin
public static void begin(@NonNull String sectionName)Wraps Trace.beginSection to ensure that the line length stays below 127 code units.- Parameters:
sectionName- The string to display as the section name in the trace.
-
end
public static void end() throws RuntimeExceptionWraps Trace.endSection.- Throws:
RuntimeException
-
-