forked from JetBrains/intellij-community
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitOrigin-RevId: d59d9ddd7099cd3431c9d8186b3669a5a202f249
- Loading branch information
1 parent
23b2d8e
commit e2262f4
Showing
5 changed files
with
26 additions
and
2 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
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
18 changes: 18 additions & 0 deletions
18
plugins/jps-cache/src/com/intellij/jps/cache/statistics/JpsCacheUsagesCollector.java
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,18 @@ | ||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. | ||
package com.intellij.jps.cache.statistics; | ||
|
||
import com.intellij.internal.statistic.eventLog.EventLogGroup; | ||
import com.intellij.internal.statistic.eventLog.events.EventFields; | ||
import com.intellij.internal.statistic.eventLog.events.EventId1; | ||
import com.intellij.internal.statistic.service.fus.collectors.CounterUsagesCollector; | ||
|
||
public class JpsCacheUsagesCollector extends CounterUsagesCollector { | ||
private static final EventLogGroup GROUP = new EventLogGroup("jps.cache", 1); | ||
public static final EventId1<Long> DOWNLOAD_DURATION_EVENT_ID = GROUP.registerEvent("CachesDownloadDuration", EventFields.Long("download_time")); | ||
public static final EventId1<Long> DOWNLOAD_SIZE_EVENT_ID = GROUP.registerEvent("CachesDownloadSize", EventFields.Long("download_size")); | ||
|
||
@Override | ||
public EventLogGroup getGroup() { | ||
return GROUP; | ||
} | ||
} |