summaryrefslogtreecommitdiff
path: root/tools/edit_monitor/main.py
diff options
context:
space:
mode:
author Zhuoyao Zhang <zhuoyao@google.com> 2024-10-09 18:04:39 +0000
committer Zhuoyao Zhang <zhuoyao@google.com> 2024-10-23 22:14:34 +0000
commit8a2257965207cf117a33bc52dc9e39c94e35a343 (patch)
treec5ff4af3782df27c7ec73a7e0be6024f61a4a8de /tools/edit_monitor/main.py
parent35bd3d27b96af9bf77a0a1e69358b02550c063a5 (diff)
Performance optimization for edit monitor
Instead of log every edit event immediately when received the event, cache the events and log the cached events in batch periodically. In case when there are many edits events recieved in a short time (probably due to non-human operation like repo sync), send an aggregated edit event instead to prevent performance degrade. Test: atest edit_monitor_test Bug: 365617369 Change-Id: Ibe1613cf1e2eb37ebc5dfa5c029b990854fcf91e
Diffstat (limited to 'tools/edit_monitor/main.py')
0 files changed, 0 insertions, 0 deletions