forked from FCL-Team/FoldCraftLauncher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'FCL-Team:main' into main
- Loading branch information
Showing
1,573 changed files
with
11,953 additions
and
426,524 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+5.82 KB
(120%)
FCL/src/main/assets/app_runtime/caciocavallo/cacio-androidnw-1.10-SNAPSHOT.jar
Binary file not shown.
Binary file modified
BIN
-1.14 KB
(99%)
FCL/src/main/assets/app_runtime/caciocavallo/cacio-shared-1.10-SNAPSHOT.jar
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5 | ||
6 |
Binary file modified
BIN
+0 Bytes
(100%)
FCL/src/main/assets/app_runtime/caciocavallo17/cacio-shared-1.18-SNAPSHOT.jar
Binary file not shown.
Binary file modified
BIN
+5.91 KB
(110%)
FCL/src/main/assets/app_runtime/caciocavallo17/cacio-tta-1.18-SNAPSHOT.jar
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2 | ||
3 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1712051464002 | ||
1726320625815 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package com.mio.util | ||
|
||
import android.os.Handler | ||
import android.os.HandlerThread | ||
import android.os.Looper | ||
import android.util.Log | ||
import android.util.Printer | ||
|
||
class PerfUtil : Printer { | ||
companion object { | ||
@JvmStatic | ||
fun install() { | ||
Looper.getMainLooper().setMessageLogging(PerfUtil()) | ||
} | ||
} | ||
|
||
private val sampler = StackSampler(300) | ||
private var isStarted = false | ||
private var startTime = 0L | ||
|
||
override fun println(x: String?) { | ||
if (!isStarted) { | ||
isStarted = true | ||
startTime = System.currentTimeMillis() | ||
sampler.startDump() | ||
} else { | ||
isStarted = false | ||
val endTime = System.currentTimeMillis() | ||
if (endTime - startTime > 300) { | ||
Log.e("FCL PerfUtil", "block time = ${endTime - startTime}") | ||
} | ||
sampler.stopDump() | ||
} | ||
} | ||
|
||
inner class StackSampler(val interval: Long) { | ||
private val handler: Handler | ||
private val runnable = Runnable { | ||
val sb = StringBuilder() | ||
Looper.getMainLooper().thread.stackTrace.forEach { | ||
sb.append(it.toString()) | ||
sb.append("\n") | ||
} | ||
Log.e("FCL PerfUtil", sb.toString()) | ||
} | ||
|
||
init { | ||
val handlerThread = HandlerThread("") | ||
handlerThread.start() | ||
handler = Handler(handlerThread.looper) | ||
} | ||
|
||
fun startDump() { | ||
handler.postDelayed(runnable, interval) | ||
} | ||
|
||
fun stopDump() { | ||
handler.removeCallbacks(runnable) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.