-
Notifications
You must be signed in to change notification settings - Fork 103
Expand file tree
/
Copy path__init__.py
More file actions
98 lines (93 loc) · 1.65 KB
/
__init__.py
File metadata and controls
98 lines (93 loc) · 1.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
"""libCacheSim Python bindings"""
from __future__ import annotations
from .libcachesim_python import (
Cache,
Request,
ReqOp,
TraceType,
SamplerType,
AnalysisParam,
AnalysisOption,
__doc__,
__version__,
)
from .cache import (
CacheBase,
# Core algorithms
LRU,
FIFO,
LFU,
ARC,
Clock,
Random,
# Advanced algorithms
S3FIFO,
Sieve,
LIRS,
TwoQ,
SLRU,
WTinyLFU,
LeCaR,
LFUDA,
ClockPro,
Cacheus,
# Optimal algorithms
Belady,
BeladySize,
# Plugin cache
PythonHookCachePolicy,
)
from .trace_reader import TraceReader
from .trace_analyzer import TraceAnalyzer
from .synthetic_reader import SyntheticReader, create_zipf_requests, create_uniform_requests
from .util import Util
from .data_loader import DataLoader
__all__ = [
# Core classes
"Cache",
"Request",
"ReqOp",
"TraceType",
"SamplerType",
"AnalysisParam",
"AnalysisOption",
# Cache base class
"CacheBase",
# Core cache algorithms
"LRU",
"FIFO",
"LFU",
"ARC",
"Clock",
"Random",
# Advanced cache algorithms
"S3FIFO",
"Sieve",
"LIRS",
"TwoQ",
"SLRU",
"WTinyLFU",
"LeCaR",
"LFUDA",
"ClockPro",
"Cacheus",
# Optimal algorithms
"Belady",
"BeladySize",
# Plugin cache
"PythonHookCachePolicy",
# Readers and analyzers
"TraceReader",
"TraceAnalyzer",
"SyntheticReader",
# Trace generators
"create_zipf_requests",
"create_uniform_requests",
# Utilities
"Util",
# Data loader
"DataLoader",
# Metadata
"__doc__",
"__version__",
]