.class public final Lio/flutter/util/TraceSection; .super Ljava/lang/Object; .source "TraceSection.java" # interfaces .implements Ljava/lang/AutoCloseable; # direct methods .method private constructor (Ljava/lang/String;)V .locals 0 .line 29 invoke-direct {p0}, Ljava/lang/Object;->()V .line 30 invoke-static {p1}, Lio/flutter/util/TraceSection;->begin(Ljava/lang/String;)V return-void .end method .method public static begin(Ljava/lang/String;)V .locals 0 .line 48 invoke-static {p0}, Lio/flutter/util/TraceSection;->cropSectionName(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 invoke-static {p0}, Landroidx/tracing/Trace;->beginSection(Ljava/lang/String;)V return-void .end method .method public static beginAsyncSection(Ljava/lang/String;I)V .locals 0 .line 63 invoke-static {p0}, Lio/flutter/util/TraceSection;->cropSectionName(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 invoke-static {p0, p1}, Landroidx/tracing/Trace;->beginAsyncSection(Ljava/lang/String;I)V return-void .end method .method private static cropSectionName(Ljava/lang/String;)Ljava/lang/String; .locals 3 .line 39 invoke-virtual {p0}, Ljava/lang/String;->length()I move-result v0 const/16 v1, 0x7c if-ge v0, v1, :cond_0 goto :goto_0 :cond_0 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V const/4 v2, 0x0 invoke-virtual {p0, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String; move-result-object p0 invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 const-string v0, "..." invoke-virtual {p0, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 :goto_0 return-object p0 .end method .method public static end()V .locals 0 .annotation system Ldalvik/annotation/Throws; value = { Ljava/lang/RuntimeException; } .end annotation .line 53 invoke-static {}, Landroidx/tracing/Trace;->endSection()V return-void .end method .method public static endAsyncSection(Ljava/lang/String;I)V .locals 0 .line 68 invoke-static {p0}, Lio/flutter/util/TraceSection;->cropSectionName(Ljava/lang/String;)Ljava/lang/String; move-result-object p0 invoke-static {p0, p1}, Landroidx/tracing/Trace;->endAsyncSection(Ljava/lang/String;I)V return-void .end method .method public static scoped(Ljava/lang/String;)Lio/flutter/util/TraceSection; .locals 1 .line 25 new-instance v0, Lio/flutter/util/TraceSection; invoke-direct {v0, p0}, Lio/flutter/util/TraceSection;->(Ljava/lang/String;)V return-object v0 .end method # virtual methods .method public close()V .locals 0 .line 35 invoke-static {}, Lio/flutter/util/TraceSection;->end()V return-void .end method