.class public Lcom/glu/plugins/gluanalytics/GluPerformance; .super Ljava/lang/Object; .source "SourceFile" # interfaces .implements Lcom/glu/plugins/gluanalytics/IPerformance; # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lcom/glu/plugins/gluanalytics/GluPerformance$FrameTask;, Lcom/glu/plugins/gluanalytics/GluPerformance$SampleTask;, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample; } .end annotation # static fields .field private static preSDKLoadStartTimeStamp:J # instance fields .field final APP_PERFORMANCE:Ljava/lang/String; .field final LOG_EVENT_SOURCE_SDK:Ljava/lang/String; .field final LOG_NAME_PERFORMANCE:Ljava/lang/String; .field private final lock:Ljava/lang/Object; .field private mActivityManager:Landroid/app/ActivityManager; .field private mAnalytics:Lcom/glu/plugins/gluanalytics/IAnalytics; .field private mDevBuild:Z .field private mExecutor:Ljava/util/concurrent/ScheduledThreadPoolExecutor; .field private mFrameCount:I .field private mFrameTask:Lcom/glu/plugins/gluanalytics/GluPerformance$FrameTask; .field private mHasVersionChanged:Z .field private mIsFirstLaunch:Z .field private mLastFrameTime:J .field private mLatestFPS:D .field private final mLog:Lcom/glu/plugins/gluanalytics/util/YLogger; .field private mPerfSamples:Ljava/util/HashMap; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/HashMap<", "Ljava/lang/String;", "Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;", ">;" } .end annotation .end field .field mPreInitSample:Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample; .field private mRunning:Z .field private mSampleInterval:D .field private mTargetFrameRate:D # direct methods .method static constructor ()V .locals 0 return-void .end method .method public constructor (Landroid/content/Context;DDZDZZ)V .locals 13 move-object v0, p0 move-wide v1, p2 move-wide/from16 v3, p4 .line 58 invoke-direct {p0}, Ljava/lang/Object;->()V .line 28 new-instance v5, Ljava/lang/Object; invoke-direct {v5}, Ljava/lang/Object;->()V iput-object v5, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->lock:Ljava/lang/Object; .line 29 invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v5 invoke-static {v5}, Lcom/glu/plugins/gluanalytics/util/YLogger;->create(Ljava/lang/Class;)Lcom/glu/plugins/gluanalytics/util/YLogger; move-result-object v5 iput-object v5, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mLog:Lcom/glu/plugins/gluanalytics/util/YLogger; const-string v5, "PERFORMANCE" iput-object v5, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->LOG_NAME_PERFORMANCE:Ljava/lang/String; const-string v5, "SDK_STANDARD" iput-object v5, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->LOG_EVENT_SOURCE_SDK:Ljava/lang/String; const-string v5, "APP_PERFORMANCE" iput-object v5, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->APP_PERFORMANCE:Ljava/lang/String; iput-wide v1, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mSampleInterval:D iput-wide v3, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mTargetFrameRate:D .line 62 new-instance v6, Ljava/util/HashMap; invoke-direct {v6}, Ljava/util/HashMap;->()V iput-object v6, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPerfSamples:Ljava/util/HashMap; move/from16 v6, p6 iput-boolean v6, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mDevBuild:Z move/from16 v6, p9 iput-boolean v6, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mIsFirstLaunch:Z move/from16 v6, p10 iput-boolean v6, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mHasVersionChanged:Z const-string v6, "activity" move-object v7, p1 .line 68 invoke-virtual {p1, v6}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object; move-result-object v6 check-cast v6, Landroid/app/ActivityManager; iput-object v6, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mActivityManager:Landroid/app/ActivityManager; const/4 v6, 0x0 iput v6, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mFrameCount:I const-wide/16 v6, 0x0 iput-wide v6, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mLastFrameTime:J iput-wide v3, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mLatestFPS:D .line 73 new-instance v3, Lcom/glu/plugins/gluanalytics/GluPerformance$FrameTask; invoke-direct {v3, p0}, Lcom/glu/plugins/gluanalytics/GluPerformance$FrameTask;->(Lcom/glu/plugins/gluanalytics/GluPerformance;)V iput-object v3, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mFrameTask:Lcom/glu/plugins/gluanalytics/GluPerformance$FrameTask; .line 75 new-instance v6, Ljava/util/concurrent/ScheduledThreadPoolExecutor; const/4 v3, 0x1 invoke-direct {v6, v3}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->(I)V iput-object v6, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mExecutor:Ljava/util/concurrent/ScheduledThreadPoolExecutor; .line 76 new-instance v7, Lcom/glu/plugins/gluanalytics/GluPerformance$SampleTask; invoke-direct {v7, p0}, Lcom/glu/plugins/gluanalytics/GluPerformance$SampleTask;->(Lcom/glu/plugins/gluanalytics/GluPerformance;)V const-wide/16 v8, 0x0 const-wide v10, 0x408f400000000000L # 1000.0 mul-double/2addr v1, v10 double-to-long v10, v1 sget-object v12, Ljava/util/concurrent/TimeUnit;->MILLISECONDS:Ljava/util/concurrent/TimeUnit; invoke-virtual/range {v6 .. v12}, Ljava/util/concurrent/ScheduledThreadPoolExecutor;->scheduleAtFixedRate(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture; iput-boolean v3, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mRunning:Z const/4 v1, 0x0 iput-object v1, v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPreInitSample:Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample; move-wide/from16 v2, p7 .line 80 invoke-virtual {p0, v2, v3}, Lcom/glu/plugins/gluanalytics/GluPerformance;->logPreBootSample(D)V const/4 v2, 0x7 .line 82 invoke-virtual {p0, v5, v2, v1}, Lcom/glu/plugins/gluanalytics/GluPerformance;->perfSampleStart(Ljava/lang/String;ILjava/util/Map;)V return-void .end method .method public static synthetic access$100(Lcom/glu/plugins/gluanalytics/GluPerformance;)Lcom/glu/plugins/gluanalytics/util/YLogger; .locals 0 .line 24 iget-object p0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mLog:Lcom/glu/plugins/gluanalytics/util/YLogger; return-object p0 .end method .method public static synthetic access$1000(Lcom/glu/plugins/gluanalytics/GluPerformance;)D .locals 2 .line 24 invoke-direct {p0}, Lcom/glu/plugins/gluanalytics/GluPerformance;->getUsedMemory()D move-result-wide v0 return-wide v0 .end method .method public static synthetic access$1100(Lcom/glu/plugins/gluanalytics/GluPerformance;)D .locals 2 .line 24 iget-wide v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mTargetFrameRate:D return-wide v0 .end method .method public static synthetic access$300(Lcom/glu/plugins/gluanalytics/GluPerformance;)J .locals 2 .line 24 iget-wide v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mLastFrameTime:J return-wide v0 .end method .method public static synthetic access$302(Lcom/glu/plugins/gluanalytics/GluPerformance;J)J .locals 0 .line 24 iput-wide p1, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mLastFrameTime:J return-wide p1 .end method .method public static synthetic access$400(Lcom/glu/plugins/gluanalytics/GluPerformance;)I .locals 0 .line 24 iget p0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mFrameCount:I return p0 .end method .method public static synthetic access$402(Lcom/glu/plugins/gluanalytics/GluPerformance;I)I .locals 0 .line 24 iput p1, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mFrameCount:I return p1 .end method .method public static synthetic access$408(Lcom/glu/plugins/gluanalytics/GluPerformance;)I .locals 2 .line 24 iget v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mFrameCount:I add-int/lit8 v1, v0, 0x1 iput v1, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mFrameCount:I return v0 .end method .method public static synthetic access$500(Lcom/glu/plugins/gluanalytics/GluPerformance;)D .locals 2 .line 24 iget-wide v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mSampleInterval:D return-wide v0 .end method .method public static synthetic access$600(Lcom/glu/plugins/gluanalytics/GluPerformance;)D .locals 2 .line 24 iget-wide v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mLatestFPS:D return-wide v0 .end method .method public static synthetic access$602(Lcom/glu/plugins/gluanalytics/GluPerformance;D)D .locals 0 .line 24 iput-wide p1, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mLatestFPS:D return-wide p1 .end method .method public static synthetic access$700(Lcom/glu/plugins/gluanalytics/GluPerformance;)Ljava/lang/Object; .locals 0 .line 24 iget-object p0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->lock:Ljava/lang/Object; return-object p0 .end method .method public static synthetic access$800(Lcom/glu/plugins/gluanalytics/GluPerformance;)Ljava/util/HashMap; .locals 0 .line 24 iget-object p0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPerfSamples:Ljava/util/HashMap; return-object p0 .end method .method public static synthetic access$900(Lcom/glu/plugins/gluanalytics/GluPerformance;)Z .locals 0 .line 24 iget-boolean p0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mRunning:Z return p0 .end method .method private flush(Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;)V .locals 11 if-nez p1, :cond_0 return-void .line 311 :cond_0 iget-object v0, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->userData:Ljava/util/Map; if-nez v0, :cond_1 .line 312 new-instance v0, Ljava/util/HashMap; invoke-direct {v0}, Ljava/util/HashMap;->()V :goto_0 move-object v8, v0 goto :goto_1 .line 314 :cond_1 new-instance v0, Ljava/util/HashMap; iget-object v1, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->userData:Ljava/util/Map; invoke-direct {v0, v1}, Ljava/util/HashMap;->(Ljava/util/Map;)V goto :goto_0 :goto_1 iget-boolean v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mIsFirstLaunch:Z const-string v1, "true" if-eqz v0, :cond_2 const-string v0, "isFirstLaunch" .line 317 invoke-virtual {v8, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; :cond_2 iget-boolean v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mHasVersionChanged:Z if-eqz v0, :cond_3 const-string v0, "wasVersionUpdated" .line 320 invoke-virtual {v8, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 322 :cond_3 iget v0, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->type:I and-int/lit8 v0, v0, 0x2 const-wide/16 v1, 0x0 if-eqz v0, :cond_6 iget-boolean v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mDevBuild:Z if-eqz v0, :cond_4 .line 324 iget-wide v3, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->startMemory:D invoke-static {v3, v4}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double; move-result-object v0 const-string v3, "start_mem" invoke-virtual {v8, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 325 iget-wide v3, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->endMemory:D invoke-static {v3, v4}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double; move-result-object v0 const-string v3, "end_mem" invoke-virtual {v8, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 327 :cond_4 iget-wide v3, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->sampleCount:J cmp-long v0, v3, v1 const-string v3, "avg_mem" const-string v4, "max_mem" if-eqz v0, :cond_5 .line 328 iget-wide v5, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->maxMemory:D invoke-static {v5, v6}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double; move-result-object v0 invoke-virtual {v8, v4, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 329 iget-wide v4, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->totalMemory:D iget-wide v6, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->sampleCount:J long-to-double v6, v6 div-double/2addr v4, v6 invoke-static {v4, v5}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double; move-result-object v0 invoke-virtual {v8, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; goto :goto_2 :cond_5 iget-boolean v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mDevBuild:Z if-eqz v0, :cond_6 .line 331 iget-wide v5, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->startMemory:D iget-wide v9, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->endMemory:D invoke-static {v5, v6, v9, v10}, Ljava/lang/Math;->max(DD)D move-result-wide v5 invoke-static {v5, v6}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double; move-result-object v0 invoke-virtual {v8, v4, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 332 iget-wide v4, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->startMemory:D iget-wide v6, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->endMemory:D add-double/2addr v4, v6 const-wide/high16 v6, 0x3fe0000000000000L # 0.5 mul-double/2addr v4, v6 invoke-static {v4, v5}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double; move-result-object v0 invoke-virtual {v8, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 335 :cond_6 :goto_2 iget v0, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->type:I and-int/lit8 v0, v0, 0x4 if-eqz v0, :cond_7 iget-wide v3, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->sampleCount:J cmp-long v0, v3, v1 if-eqz v0, :cond_7 .line 336 iget-wide v0, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->minFPS:D invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double; move-result-object v0 const-string v1, "min_fps" invoke-virtual {v8, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 337 iget-wide v0, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->totalFPS:D iget-wide v2, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->sampleCount:J long-to-double v2, v2 div-double/2addr v0, v2 invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double; move-result-object v0 const-string v1, "avg_fps" invoke-virtual {v8, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; iget-wide v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mTargetFrameRate:D .line 338 invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double; move-result-object v0 const-string v1, "target_fps" invoke-virtual {v8, v1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 340 :cond_7 iget v0, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->type:I and-int/lit8 v0, v0, 0x1 if-eqz v0, :cond_9 .line 341 iget-wide v0, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->preInitTime:D const-wide/16 v2, 0x0 cmpl-double v2, v0, v2 const-string v3, "time_ms" if-lez v2, :cond_8 .line 342 invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double; move-result-object v0 invoke-virtual {v8, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; goto :goto_3 .line 344 :cond_8 invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J move-result-wide v0 long-to-double v0, v0 iget-wide v4, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->startTimeStamp:D sub-double/2addr v0, v4 iget-wide v4, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->pausedTimeTotal:D sub-double/2addr v0, v4 invoke-static {v0, v1}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double; move-result-object v0 invoke-virtual {v8, v3, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 347 :goto_3 iget-boolean v0, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->isSuspended:Z if-eqz v0, :cond_9 const-string v0, "is_suspended" sget-object v1, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean; .line 348 invoke-virtual {v8, v0, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; :cond_9 iget-object v2, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mAnalytics:Lcom/glu/plugins/gluanalytics/IAnalytics; .line 352 iget-object v3, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->placement:Ljava/lang/String; const-string v4, "PERFORMANCE" iget p1, p1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->type:I invoke-static {p1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String; move-result-object v5 const/4 v6, 0x0 const-string v7, "SDK_STANDARD" invoke-interface/range {v2 .. v8}, Lcom/glu/plugins/gluanalytics/IAnalytics;->internal_perfEvent(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V return-void .end method .method private getUsedMemory()D .locals 2 .line 87 invoke-static {}, Landroid/os/Process;->myPid()I move-result v0 filled-new-array {v0}, [I move-result-object v0 iget-object v1, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mActivityManager:Landroid/app/ActivityManager; .line 88 invoke-virtual {v1, v0}, Landroid/app/ActivityManager;->getProcessMemoryInfo([I)[Landroid/os/Debug$MemoryInfo; move-result-object v0 const/4 v1, 0x0 .line 89 aget-object v0, v0, v1 invoke-virtual {v0}, Landroid/os/Debug$MemoryInfo;->getTotalPss()I move-result v0 int-to-float v0, v0 const/high16 v1, 0x44800000 # 1024.0f div-float/2addr v0, v1 float-to-double v0, v0 return-wide v0 .end method .method public static perfSampleLogLaunchOverhead()V .locals 2 .line 281 invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J move-result-wide v0 sput-wide v0, Lcom/glu/plugins/gluanalytics/GluPerformance;->preSDKLoadStartTimeStamp:J return-void .end method # virtual methods .method public destroy()V .locals 2 iget-boolean v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mRunning:Z if-eqz v0, :cond_0 const-string v0, "APP_PERFORMANCE" const/4 v1, 0x0 .line 95 invoke-virtual {p0, v0, v1}, Lcom/glu/plugins/gluanalytics/GluPerformance;->perfSampleEnd(Ljava/lang/String;Ljava/util/Map;)V const/4 v0, 0x0 iput-boolean v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mRunning:Z :cond_0 return-void .end method .method public internal_LogLaunchOverhead()V .locals 1 iget-object v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPreInitSample:Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample; if-eqz v0, :cond_0 .line 151 invoke-direct {p0, v0}, Lcom/glu/plugins/gluanalytics/GluPerformance;->flush(Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;)V const/4 v0, 0x0 iput-object v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPreInitSample:Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample; :cond_0 return-void .end method .method public internal_SetAnalytics(Lcom/glu/plugins/gluanalytics/IAnalytics;)V .locals 0 iput-object p1, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mAnalytics:Lcom/glu/plugins/gluanalytics/IAnalytics; return-void .end method .method public logPreBootSample(D)V .locals 5 const-wide/16 v0, 0x0 sget-wide v2, Lcom/glu/plugins/gluanalytics/GluPerformance;->preSDKLoadStartTimeStamp:J cmp-long v0, v0, v2 const-wide/16 v1, 0x0 if-nez v0, :cond_0 cmpl-double v0, p1, v1 if-lez v0, :cond_2 .line 287 :cond_0 new-instance v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample; const/4 v3, 0x0 invoke-direct {v0, p0, v3}, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->(Lcom/glu/plugins/gluanalytics/GluPerformance;Lcom/glu/plugins/gluanalytics/GluPerformance$1;)V iput-object v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPreInitSample:Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample; const-string v4, "LAUNCH_OVERHEAD" iput-object v4, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->placement:Ljava/lang/String; iput-object v3, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->userData:Ljava/util/Map; const/4 v3, 0x1 iput v3, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->type:I cmpl-double v1, p1, v1 if-lez v1, :cond_1 const-wide v1, 0x408f400000000000L # 1000.0 mul-double/2addr p1, v1 iput-wide p1, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->preInitTime:D goto :goto_0 :cond_1 sget-wide p1, Lcom/glu/plugins/gluanalytics/GluPerformance;->preSDKLoadStartTimeStamp:J long-to-double p1, p1 iput-wide p1, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->startTimeStamp:D :goto_0 const/4 p1, 0x0 iput-boolean p1, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->isSuspended:Z :cond_2 return-void .end method .method public onPause()V .locals 6 iget-boolean v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mRunning:Z const/4 v1, 0x0 if-eqz v0, :cond_0 const-string v0, "APP_PERFORMANCE" const/4 v2, 0x0 .line 123 invoke-virtual {p0, v0, v2}, Lcom/glu/plugins/gluanalytics/GluPerformance;->perfSampleEnd(Ljava/lang/String;Ljava/util/Map;)V iput-boolean v1, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mRunning:Z :cond_0 iget-object v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mFrameTask:Lcom/glu/plugins/gluanalytics/GluPerformance$FrameTask; .line 126 invoke-virtual {v0}, Lcom/glu/plugins/gluanalytics/GluPerformance$FrameTask;->end()V iget-object v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->lock:Ljava/lang/Object; .line 128 monitor-enter v0 :try_start_0 iget-object v2, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPerfSamples:Ljava/util/HashMap; .line 129 invoke-virtual {v2}, Ljava/util/HashMap;->entrySet()Ljava/util/Set; move-result-object v2 invoke-interface {v2}, Ljava/util/Set;->iterator()Ljava/util/Iterator; move-result-object v2 .line 130 :cond_1 :goto_0 invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z move-result v3 if-eqz v3, :cond_2 .line 131 invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v3 check-cast v3, Ljava/util/Map$Entry; .line 132 invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object; move-result-object v4 check-cast v4, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample; const/4 v5, 0x1 .line 133 iput-boolean v5, v4, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->isSuspended:Z .line 134 iget-object v4, v4, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->userData:Ljava/util/Map; if-eqz v4, :cond_1 const-string v5, "autoPause" invoke-interface {v4, v5}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z move-result v4 if-eqz v4, :cond_1 .line 135 invoke-interface {v3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object; move-result-object v3 check-cast v3, Ljava/lang/String; invoke-virtual {p0, v3, v1}, Lcom/glu/plugins/gluanalytics/GluPerformance;->perfSampleAction(Ljava/lang/String;I)Z goto :goto_0 :catchall_0 move-exception v1 goto :goto_1 .line 138 :cond_2 monitor-exit v0 return-void :goto_1 monitor-exit v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 throw v1 .end method .method public onResume()V .locals 5 const/4 v0, 0x0 iput v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mFrameCount:I const-wide/16 v0, 0x0 iput-wide v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mLastFrameTime:J iget-object v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mFrameTask:Lcom/glu/plugins/gluanalytics/GluPerformance$FrameTask; .line 104 invoke-virtual {v0}, Lcom/glu/plugins/gluanalytics/GluPerformance$FrameTask;->start()V iget-boolean v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mRunning:Z const/4 v1, 0x1 if-nez v0, :cond_0 iput-boolean v1, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mRunning:Z const/4 v0, 0x7 const/4 v2, 0x0 const-string v3, "APP_PERFORMANCE" .line 108 invoke-virtual {p0, v3, v0, v2}, Lcom/glu/plugins/gluanalytics/GluPerformance;->perfSampleStart(Ljava/lang/String;ILjava/util/Map;)V :cond_0 iget-object v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPerfSamples:Ljava/util/HashMap; .line 111 invoke-virtual {v0}, Ljava/util/HashMap;->keySet()Ljava/util/Set; move-result-object v0 .line 112 invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator; move-result-object v0 :cond_1 :goto_0 invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z move-result v2 if-eqz v2, :cond_2 invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v2 check-cast v2, Ljava/lang/String; iget-object v3, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPerfSamples:Ljava/util/HashMap; .line 113 invoke-virtual {v3, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v3 check-cast v3, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample; .line 114 iget-object v3, v3, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->userData:Ljava/util/Map; if-eqz v3, :cond_1 const-string v4, "autoPause" invoke-interface {v3, v4}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z move-result v3 if-eqz v3, :cond_1 .line 115 invoke-virtual {p0, v2, v1}, Lcom/glu/plugins/gluanalytics/GluPerformance;->perfSampleAction(Ljava/lang/String;I)Z goto :goto_0 :cond_2 return-void .end method .method public perfGetValues()Lcom/glu/plugins/gluanalytics/PerfMeasure; .locals 9 .line 210 new-instance v0, Lcom/glu/plugins/gluanalytics/PerfMeasure; invoke-direct {v0}, Lcom/glu/plugins/gluanalytics/PerfMeasure;->()V iget-object v1, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPerfSamples:Ljava/util/HashMap; const-string v2, "APP_PERFORMANCE" .line 212 invoke-virtual {v1, v2}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z move-result v1 iget-object v3, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPerfSamples:Ljava/util/HashMap; .line 213 invoke-virtual {v3, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v2 check-cast v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample; const-wide/high16 v3, -0x4010000000000000L # -1.0 if-eqz v1, :cond_1 .line 215 iget v5, v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->type:I and-int/lit8 v5, v5, 0x4 if-eqz v5, :cond_1 iget-boolean v5, v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->isPaused:Z if-eqz v5, :cond_0 goto :goto_0 .line 221 :cond_0 iget-wide v5, v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->totalFPS:D iget-wide v7, v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->sampleCount:J long-to-double v7, v7 div-double/2addr v5, v7 iput-wide v5, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->averageFPS:D .line 222 iget-wide v5, v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->lastFPS:D iput-wide v5, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->lastFPS:D .line 223 iget-wide v5, v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->minFPS:D iput-wide v5, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->minFPS:D .line 224 iget-wide v5, v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->maxFPS:D iput-wide v5, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->maxFPS:D goto :goto_1 :cond_1 :goto_0 iput-wide v3, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->averageFPS:D iput-wide v3, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->lastFPS:D iput-wide v3, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->minFPS:D iput-wide v3, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->maxFPS:D :goto_1 if-eqz v1, :cond_3 .line 227 iget v5, v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->type:I and-int/lit8 v5, v5, 0x2 if-eqz v5, :cond_3 iget-boolean v5, v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->isPaused:Z if-eqz v5, :cond_2 goto :goto_2 .line 232 :cond_2 iget-wide v5, v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->startMemory:D iput-wide v5, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->startMem:D .line 233 iget-wide v5, v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->maxMemory:D iput-wide v5, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->maxMem:D .line 234 invoke-direct {p0}, Lcom/glu/plugins/gluanalytics/GluPerformance;->getUsedMemory()D move-result-wide v5 iput-wide v5, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->currentMem:D goto :goto_3 :cond_3 :goto_2 iput-wide v3, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->startMem:D iput-wide v3, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->maxMem:D iput-wide v3, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->currentMem:D :goto_3 if-eqz v1, :cond_5 .line 237 iget v1, v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->type:I and-int/lit8 v1, v1, 0x2 if-eqz v1, :cond_5 iget-boolean v1, v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->isPaused:Z if-eqz v1, :cond_4 goto :goto_4 .line 240 :cond_4 invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J move-result-wide v3 long-to-double v3, v3 iget-wide v5, v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->startTimeStamp:D sub-double/2addr v3, v5 iget-wide v1, v2, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->pausedTimeTotal:D sub-double/2addr v3, v1 iput-wide v3, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->time:D goto :goto_5 :cond_5 :goto_4 iput-wide v3, v0, Lcom/glu/plugins/gluanalytics/PerfMeasure;->time:D :goto_5 return-object v0 .end method .method public perfSampleAction(Ljava/lang/String;I)Z .locals 7 iget-object v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPerfSamples:Ljava/util/HashMap; .line 248 invoke-virtual {v0, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z move-result v0 const/4 v1, 0x0 if-nez v0, :cond_0 return v1 :cond_0 iget-object v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPerfSamples:Ljava/util/HashMap; .line 252 invoke-virtual {v0, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample; const/4 v2, 0x1 if-eqz p2, :cond_4 if-eq p2, v2, :cond_2 const/4 v0, 0x2 if-eq p2, v0, :cond_1 goto :goto_0 :cond_1 iget-object p2, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->lock:Ljava/lang/Object; .line 268 monitor-enter p2 :try_start_0 iget-object v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPerfSamples:Ljava/util/HashMap; .line 269 invoke-virtual {v0, p1}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object; .line 270 monitor-exit p2 goto :goto_0 :catchall_0 move-exception p1 monitor-exit p2 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 throw p1 .line 262 :cond_2 iget-boolean p1, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->isPaused:Z if-nez p1, :cond_3 return v1 .line 264 :cond_3 iput-boolean v1, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->isPaused:Z .line 265 iget-wide p1, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->pausedTimeTotal:D invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J move-result-wide v3 long-to-double v3, v3 iget-wide v5, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->startPausedTimeStamp:D sub-double/2addr v3, v5 add-double/2addr p1, v3 iput-wide p1, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->pausedTimeTotal:D goto :goto_0 .line 256 :cond_4 iget-boolean p1, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->isPaused:Z if-eqz p1, :cond_5 return v1 .line 258 :cond_5 iput-boolean v2, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->isPaused:Z .line 259 invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J move-result-wide p1 long-to-double p1, p1 iput-wide p1, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->startPausedTimeStamp:D :goto_0 return v2 .end method .method public perfSampleEnd(Ljava/lang/String;Ljava/util/Map;)V .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/String;", "Ljava/util/Map<", "Ljava/lang/String;", "*>;)V" } .end annotation iget-object v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->lock:Ljava/lang/Object; .line 193 monitor-enter v0 :try_start_0 iget-object v1, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPerfSamples:Ljava/util/HashMap; .line 194 invoke-virtual {v1, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z move-result v1 if-nez v1, :cond_0 iget-object p2, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mLog:Lcom/glu/plugins/gluanalytics/util/YLogger; const-string v1, "PerfSampleEnd" const/4 v2, 0x4 new-array v2, v2, [Ljava/lang/Object; const-string v3, "m" const/4 v4, 0x0 aput-object v3, v2, v4 const-string v3, "placement is not exist, ignored." const/4 v4, 0x1 aput-object v3, v2, v4 const-string v3, "placement" const/4 v4, 0x2 aput-object v3, v2, v4 const/4 v3, 0x3 aput-object p1, v2, v3 .line 195 invoke-virtual {p2, v1, v2}, Lcom/glu/plugins/gluanalytics/util/YLogger;->e(Ljava/lang/String;[Ljava/lang/Object;)V .line 196 monitor-exit v0 return-void :catchall_0 move-exception p1 goto :goto_1 :cond_0 iget-object v1, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPerfSamples:Ljava/util/HashMap; .line 198 invoke-virtual {v1, p1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v1 check-cast v1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample; iget-object v2, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPerfSamples:Ljava/util/HashMap; .line 199 invoke-virtual {v2, p1}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object; .line 200 monitor-exit v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 if-eqz p2, :cond_1 .line 202 invoke-interface {p2}, Ljava/util/Map;->size()I move-result p1 if-eqz p1, :cond_1 .line 203 iput-object p2, v1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->userData:Ljava/util/Map; :cond_1 iget-boolean p1, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mDevBuild:Z if-eqz p1, :cond_2 .line 204 invoke-direct {p0}, Lcom/glu/plugins/gluanalytics/GluPerformance;->getUsedMemory()D move-result-wide p1 goto :goto_0 :cond_2 const-wide/16 p1, 0x0 :goto_0 iput-wide p1, v1, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->endMemory:D .line 205 invoke-direct {p0, v1}, Lcom/glu/plugins/gluanalytics/GluPerformance;->flush(Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;)V return-void .line 200 :goto_1 :try_start_1 monitor-exit v0 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_0 throw p1 .end method .method public perfSampleStart(Ljava/lang/String;ILjava/util/Map;)V .locals 5 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/lang/String;", "I", "Ljava/util/Map<", "Ljava/lang/String;", "*>;)V" } .end annotation iget-object v0, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->lock:Ljava/lang/Object; .line 158 monitor-enter v0 :try_start_0 iget-object v1, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPerfSamples:Ljava/util/HashMap; .line 159 invoke-virtual {v1, p1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z move-result v1 const/4 v2, 0x0 if-eqz v1, :cond_0 iget-object p2, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mLog:Lcom/glu/plugins/gluanalytics/util/YLogger; const-string p3, "PerfSampleStart" const/4 v1, 0x4 new-array v1, v1, [Ljava/lang/Object; const-string v3, "m" aput-object v3, v1, v2 const-string v2, "placement has already exist, ignored." const/4 v3, 0x1 aput-object v2, v1, v3 const-string v2, "placement" const/4 v3, 0x2 aput-object v2, v1, v3 const/4 v2, 0x3 aput-object p1, v1, v2 .line 160 invoke-virtual {p2, p3, v1}, Lcom/glu/plugins/gluanalytics/util/YLogger;->e(Ljava/lang/String;[Ljava/lang/Object;)V .line 161 monitor-exit v0 return-void :catchall_0 move-exception p1 goto :goto_1 .line 163 :cond_0 monitor-exit v0 :try_end_0 .catchall {:try_start_0 .. :try_end_0} :catchall_0 .line 165 new-instance v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample; const/4 v1, 0x0 invoke-direct {v0, p0, v1}, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->(Lcom/glu/plugins/gluanalytics/GluPerformance;Lcom/glu/plugins/gluanalytics/GluPerformance$1;)V iput-object p1, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->placement:Ljava/lang/String; iput p2, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->type:I iput-object p3, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->userData:Ljava/util/Map; const-wide/16 p2, 0x0 iput-wide p2, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->maxMemory:D iput-wide p2, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->totalMemory:D iget-boolean v1, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mDevBuild:Z if-eqz v1, :cond_1 .line 171 invoke-direct {p0}, Lcom/glu/plugins/gluanalytics/GluPerformance;->getUsedMemory()D move-result-wide v3 goto :goto_0 :cond_1 move-wide v3, p2 :goto_0 iput-wide v3, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->startMemory:D iput-wide p2, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->endMemory:D iget-wide v3, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mTargetFrameRate:D iput-wide v3, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->minFPS:D iput-wide p2, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->maxFPS:D iput-wide p2, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->totalFPS:D iput-wide p2, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->lastFPS:D const-wide/16 v3, 0x0 iput-wide v3, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->sampleCount:J .line 178 invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J move-result-wide v3 long-to-double v3, v3 iput-wide v3, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->startTimeStamp:D iput-boolean v2, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->isSuspended:Z iput-boolean v2, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->isPaused:Z iput-wide p2, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->startPausedTimeStamp:D iput-wide p2, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->pausedTimeTotal:D iput-wide p2, v0, Lcom/glu/plugins/gluanalytics/GluPerformance$PerfSample;->preInitTime:D iget-object p2, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->lock:Ljava/lang/Object; .line 185 monitor-enter p2 :try_start_1 iget-object p3, p0, Lcom/glu/plugins/gluanalytics/GluPerformance;->mPerfSamples:Ljava/util/HashMap; .line 186 invoke-virtual {p3, p1, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .line 187 monitor-exit p2 return-void :catchall_1 move-exception p1 monitor-exit p2 :try_end_1 .catchall {:try_start_1 .. :try_end_1} :catchall_1 throw p1 .line 163 :goto_1 :try_start_2 monitor-exit v0 :try_end_2 .catchall {:try_start_2 .. :try_end_2} :catchall_0 throw p1 .end method