|
def | __init__ (self, loader, listener=None, max_cache_size=100) |
|
def | cache_item (self, topic, t, item) |
|
def | enqueue (self, entry) |
|
def | get_item (self, topic, stamp, time_threshold) |
|
def | run (self) |
|
def | stop (self) |
|
Caches items for timeline renderers
Definition at line 43 of file timeline_cache.py.
◆ __init__()
def rqt_bag.timeline_cache.TimelineCache.__init__ |
( |
|
self, |
|
|
|
loader, |
|
|
|
listener = None , |
|
|
|
max_cache_size = 100 |
|
) |
| |
◆ _limit_cache()
def rqt_bag.timeline_cache.TimelineCache._limit_cache |
( |
|
self | ) |
|
|
private |
Removes LRU's from cache until size of each topic's cache is <= max_cache_size.
Definition at line 164 of file timeline_cache.py.
◆ _update_last_accessed()
def rqt_bag.timeline_cache.TimelineCache._update_last_accessed |
( |
|
self, |
|
|
|
topic, |
|
|
|
stamp |
|
) |
| |
|
private |
Maintains a sorted list of cache accesses by timestamp for each topic.
Definition at line 138 of file timeline_cache.py.
◆ cache_item()
def rqt_bag.timeline_cache.TimelineCache.cache_item |
( |
|
self, |
|
|
|
topic, |
|
|
|
t, |
|
|
|
item |
|
) |
| |
◆ enqueue()
def rqt_bag.timeline_cache.TimelineCache.enqueue |
( |
|
self, |
|
|
|
entry |
|
) |
| |
◆ get_item()
def rqt_bag.timeline_cache.TimelineCache.get_item |
( |
|
self, |
|
|
|
topic, |
|
|
|
stamp, |
|
|
|
time_threshold |
|
) |
| |
◆ run()
def rqt_bag.timeline_cache.TimelineCache.run |
( |
|
self | ) |
|
◆ stop()
def rqt_bag.timeline_cache.TimelineCache.stop |
( |
|
self | ) |
|
◆ item_access
rqt_bag.timeline_cache.TimelineCache.item_access |
◆ items
rqt_bag.timeline_cache.TimelineCache.items |
◆ last_accessed
rqt_bag.timeline_cache.TimelineCache.last_accessed |
◆ listener
rqt_bag.timeline_cache.TimelineCache.listener |
◆ loader
rqt_bag.timeline_cache.TimelineCache.loader |
◆ lock
rqt_bag.timeline_cache.TimelineCache.lock |
◆ max_cache_size
rqt_bag.timeline_cache.TimelineCache.max_cache_size |
◆ queue
rqt_bag.timeline_cache.TimelineCache.queue |
◆ stop_flag
rqt_bag.timeline_cache.TimelineCache.stop_flag |
The documentation for this class was generated from the following file: