-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exporter: remove 'ccache' from struct and method names
Signed-off-by: VirtualTam <[email protected]>
- Loading branch information
1 parent
027bf33
commit 469bfc9
Showing
4 changed files
with
38 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package ccache | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/alecthomas/units" | ||
) | ||
|
||
// Statistics represents information about ccache configuration and usage. | ||
type Statistics struct { | ||
CacheDirectory string `json:"cache_directory"` | ||
PrimaryConfig string `json:"primary_config"` | ||
SecondaryConfigReadonly string `json:"secondary_config_readonly"` | ||
StatsTime time.Time `json:"stats_time"` | ||
StatsZeroTime time.Time `json:"stats_zero_time"` | ||
CacheHitDirect int `json:"cache_hit_direct"` | ||
CacheHitPreprocessed int `json:"cache_hit_preprocessed"` | ||
CacheMiss int `json:"cache_miss"` | ||
CacheHitRate float64 `json:"cache_hit_rate"` | ||
CacheHitRatio float64 `json:"cache_hit_ratio"` | ||
CalledForLink int `json:"called_for_link"` | ||
CalledForPreprocessing int `json:"called_for_preprocessing"` | ||
UnsupportedCodeDirective int `json:"unsupported_code_directive"` | ||
NoInputFile int `json:"no_input_file"` | ||
CleanupsPerformed int `json:"cleanups_performed"` | ||
FilesInCache int `json:"files_in_cache"` | ||
CacheSize string `json:"cache_size"` | ||
CacheSizeBytes units.MetricBytes `json:"cache_size_bytes"` | ||
MaxCacheSize string `json:"max_cache_size"` | ||
MaxCacheSizeBytes units.MetricBytes `json:"max_cache_size_bytes"` | ||
} |