Unverified Commit e51e5360 authored by Pavel's avatar Pavel Committed by GitHub

enable stats according to system property (#595)

parent 2b7826d1
......@@ -3,7 +3,7 @@ package org.jetbrains.skia.impl
import java.util.concurrent.ConcurrentHashMap
actual object Stats {
var enabled = false
var enabled = System.getProperty("skiko.collect.stat")?.toBoolean() ?: false
var nativeCalls: Long = 0
var allocated: MutableMap<String, Int> = ConcurrentHashMap()
actual fun onNativeCall() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment