Skip to content
GitLab
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Projects
Groups
Snippets
Sign up now
Login
Sign in / Register
Toggle navigation
Menu
Open sidebar
Frank Tobin
Nebulo
Commits
ce9d2eaa
Commit
ce9d2eaa
authored
Dec 31, 2020
by
Daniel Wolf
Browse files
Provide more mem info
parent
0940e250
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/build.gradle
View file @
ce9d2eaa
...
...
@@ -153,7 +153,7 @@ dependencies {
implementation
'com.frostnerd.utilskt:lifecycle:1.2.1'
implementation
'com.frostnerd.utilskt:preferences:1.5.30'
// https://git.frostnerd.com/AndroidUtils/preferenceskt
implementation
'com.frostnerd.utilskt:navigationdraweractivity:1.4.2'
// https://git.frostnerd.com/AndroidUtils/navigationdraweractivity
implementation
'com.frostnerd.utilskt:encrypteddnstunnelproxy:2.1.2
1
'
// https://git.frostnerd.com/AndroidUtils/encrypteddnstunnelproxy
implementation
'com.frostnerd.utilskt:encrypteddnstunnelproxy:2.1.2
3
'
// https://git.frostnerd.com/AndroidUtils/encrypteddnstunnelproxy
implementation
'com.frostnerd.utilskt:general:1.0.25'
// https://git.frostnerd.com/AndroidUtils/generalkt
implementation
'com.frostnerd.utilskt:adapters:1.2.0'
// https://git.frostnerd.com/AndroidUtils/Adapters
...
...
app/src/main/java/com/frostnerd/smokescreen/service/ConnectionWatchdog.kt
View file @
ce9d2eaa
...
...
@@ -123,6 +123,7 @@ class ConnectionWatchdog(private val trafficStats: TrafficStats,
private
fun
printMemInfo
()
{
val
nativeHeapSize
=
Debug
.
getNativeHeapSize
()
val
nativeHeapFreeSize
=
Debug
.
getNativeHeapFreeSize
()
val
memInfo
=
trafficStats
.
memInfo
()
log
(
buildString
{
append
(
"MemInfo: ["
)
append
(
"OpenSockets: "
)
...
...
@@ -135,6 +136,14 @@ class ConnectionWatchdog(private val trafficStats: TrafficStats,
append
(
trafficStats
.
bytesSentToDevice
)
append
(
", BytesQueued: "
)
append
(
trafficStats
.
bytesQueuedToDevice
)
append
(
", MetaSize: "
)
append
(
memInfo
?.
metaSize
?:
"?"
)
append
(
", OutputSize: "
)
append
(
memInfo
?.
outputSize
?:
"?"
)
append
(
", OutputSizeBytes: "
)
append
(
memInfo
?.
outputSizeBytes
?:
"?"
)
append
(
", WaitingPackets: "
)
append
(
memInfo
?.
waitingPacketSize
?:
"?"
)
append
(
", HeapSize: "
)
append
(
nativeHeapSize
/
1000
/
1000
)
append
(
"mb"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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