Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
skiko
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liuqiang
skiko
Commits
e51e5360
Unverified
Commit
e51e5360
authored
Sep 16, 2022
by
Pavel
Committed by
GitHub
Sep 16, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable stats according to system property (#595)
parent
2b7826d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Stats.jvm.kt
...o/src/jvmMain/kotlin/org/jetbrains/skia/impl/Stats.jvm.kt
+1
-1
No files found.
skiko/src/jvmMain/kotlin/org/jetbrains/skia/impl/Stats.jvm.kt
View file @
e51e5360
...
@@ -3,7 +3,7 @@ package org.jetbrains.skia.impl
...
@@ -3,7 +3,7 @@ package org.jetbrains.skia.impl
import
java.util.concurrent.ConcurrentHashMap
import
java.util.concurrent.ConcurrentHashMap
actual
object
Stats
{
actual
object
Stats
{
var
enabled
=
false
var
enabled
=
System
.
getProperty
(
"skiko.collect.stat"
)
?.
toBoolean
()
?:
false
var
nativeCalls
:
Long
=
0
var
nativeCalls
:
Long
=
0
var
allocated
:
MutableMap
<
String
,
Int
>
=
ConcurrentHashMap
()
var
allocated
:
MutableMap
<
String
,
Int
>
=
ConcurrentHashMap
()
actual
fun
onNativeCall
()
{
actual
fun
onNativeCall
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment