Skip to content

Commit 31e31cf

Browse files
committed
less chatty
1 parent bcd85f4 commit 31e31cf

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

MacTcode/InputStats.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class StreamCounter {
2626
func endStream() {
2727
guard currentLength > 0 else { return }
2828
let idx = min(currentLength, 50)
29-
Log.i("★Stream ended with length \(currentLength), updating histogram at index \(idx)")
29+
// Log.i("★Stream ended with length \(currentLength), updating histogram at index \(idx)")
3030
histogram[idx] += 1
3131
currentLength = 0
3232
}
@@ -96,7 +96,7 @@ class InputStats {
9696
queue.async(flags: .barrier) {
9797
self.basicCount += 1
9898
self.totalActionCount += 1
99-
Log.i("basicCount = \(self.basicCount)")
99+
// Log.i("basicCount = \(self.basicCount)")
100100
}
101101
}
102102

@@ -183,7 +183,7 @@ class InputStats {
183183

184184
/// 非ストロークイベントを記録して連続性を断つ(バイグラム統計のみ)
185185
func recordNonStrokeEvent() {
186-
Log.i("recordNonStrokeEvent called")
186+
// Log.i("recordNonStrokeEvent called")
187187
guard UserConfigs.i.system.strokeStatsEnabled else { return }
188188
queue.async(flags: .barrier) {
189189
self.recordNonStrokeEventInternal()
@@ -198,7 +198,7 @@ class InputStats {
198198

199199
/// ストリーム統計の不連続を記録する(ストリームを終了させる)
200200
func recordStreamEndEvent() {
201-
Log.i("recordStreamEndEvent called")
201+
// Log.i("recordStreamEndEvent called")
202202
guard UserConfigs.i.system.streamStatsEnabled else { return }
203203
queue.async(flags: .barrier) {
204204
self.recordStreamEndEventInternal()
@@ -218,7 +218,7 @@ class InputStats {
218218
/// - charCount: 確定された文字数
219219
/// - subtract: 減算する文字数(ヨミ分など。Bushuでは2、Mazegakiではhit.length)
220220
func recordKakutei(charCount: Int, subtract: Int = 0) {
221-
Log.i("recordKakutei called: charCount = \(charCount), subtract = \(subtract)")
221+
// Log.i("recordKakutei called: charCount = \(charCount), subtract = \(subtract)")
222222
guard UserConfigs.i.system.streamStatsEnabled else { return }
223223
queue.async(flags: .barrier) {
224224
let now = Date()
@@ -227,7 +227,7 @@ class InputStats {
227227
for (key, counter) in self.streamCounters {
228228
guard let threshold = Double(key) else { continue }
229229
if elapsed >= threshold {
230-
Log.i("Stream threshold \(threshold) exceeded (elapsed = \(elapsed)), ending stream")
230+
// Log.i("Stream threshold \(threshold) exceeded (elapsed = \(elapsed)), ending stream")
231231
counter.endStream()
232232
}
233233
counter.addChars(charCount, subtract: subtract)

0 commit comments

Comments
 (0)