Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

v0

Louis Beaumontf764669348a1
diff --git a/resource_usage_20240822_141319.json b/resource_usage_20240822_141319.json
new file mode 100644
index 000000000..3ea9a80c6
--- /dev/null
+++ b/resource_usage_20240822_141319.json
@@ -0,0 +1 @@
+[{"memory_usage_percent":1.7672220865885415,"npu_usage_percent":-1.0,"runtime_seconds":10,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:13:29.911634+02:00","total_cpu_percent":0.0,"total_memory_gb":0.65146875},{"memory_usage_percent":2.3571014404296875,"npu_usage_percent":-1.0,"runtime_seconds":20,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:13:39.999186+02:00","total_cpu_percent":19.798315048217773,"total_memory_gb":0.868921875},{"memory_usage_percent":2.67380608452691,"npu_usage_percent":-1.0,"runtime_seconds":30,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:13:50.105437+02:00","total_cpu_percent":21.845996856689453,"total_memory_gb":0.985671875},{"memory_usage_percent":2.8416527642144103,"npu_usage_percent":-1.0,"runtime_seconds":40,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:14:00.199879+02:00","total_cpu_percent":22.67436981201172,"total_memory_gb":1.047546875},{"memory_usage_percent":3.1241099039713545,"npu_usage_percent":-1.0,"runtime_seconds":50,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:14:10.273471+02:00","total_cpu_percent":22.90972328186035,"total_memory_gb":1.151671875},{"memory_usage_percent":3.523974948459202,"npu_usage_percent":-1.0,"runtime_seconds":70,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:14:29.892697+02:00","total_cpu_percent":20.107423782348633,"total_memory_gb":1.299078125},{"memory_usage_percent":3.806855943467882,"npu_usage_percent":-1.0,"runtime_seconds":80,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:14:39.979005+02:00","total_cpu_percent":27.148937225341797,"total_memory_gb":1.403359375},{"memory_usage_percent":4.214223225911459,"npu_usage_percent":-1.0,"runtime_seconds":90,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:14:50.054553+02:00","total_cpu_percent":23.57213592529297,"total_memory_gb":1.55353125},{"memory_usage_percent":4.405424329969619,"npu_usage_percent":-1.0,"runtime_seconds":100,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:15:00.130467+02:00","total_cpu_percent":19.904232025146484,"total_memory_gb":1.624015625},{"memory_usage_percent":4.694027370876737,"npu_usage_percent":-1.0,"runtime_seconds":110,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:15:10.234396+02:00","total_cpu_percent":29.87981414794922,"total_memory_gb":1.73040625},{"memory_usage_percent":5.105802747938369,"npu_usage_percent":-1.0,"runtime_seconds":130,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:15:29.899225+02:00","total_cpu_percent":16.55685806274414,"total_memory_gb":1.882203125},{"memory_usage_percent":5.376519097222222,"npu_usage_percent":-1.0,"runtime_seconds":140,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:15:39.977521+02:00","total_cpu_percent":24.905107498168945,"total_memory_gb":1.982},{"memory_usage_percent":6.028959486219619,"npu_usage_percent":-1.0,"runtime_seconds":150,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:15:50.055549+02:00","total_cpu_percent":23.579116821289062,"total_memory_gb":2.222515625},{"memory_usage_percent":6.516393025716146,"npu_usage_percent":-1.0,"runtime_seconds":160,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:16:00.141116+02:00","total_cpu_percent":30.19601058959961,"total_memory_gb":2.402203125},{"memory_usage_percent":6.67466057671441,"npu_usage_percent":-1.0,"runtime_seconds":170,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:16:10.210217+02:00","total_cpu_percent":22.402727127075195,"total_memory_gb":2.460546875},{"memory_usage_percent":4.766845703125,"npu_usage_percent":-1.0,"runtime_seconds":190,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:16:29.901782+02:00","total_cpu_percent":20.003286361694336,"total_memory_gb":1.75725},{"memory_usage_percent":5.013402303059896,"npu_usage_percent":-1.0,"runtime_seconds":200,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:16:39.983730+02:00","total_cpu_percent":23.858444213867188,"total_memory_gb":1.848140625},{"memory_usage_percent":5.315611097547744,"npu_usage_percent":-1.0,"runtime_seconds":210,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:16:50.086497+02:00","total_cpu_percent":23.23115348815918,"total_memory_gb":1.959546875},{"memory_usage_percent":5.449591742621529,"npu_usage_percent":-1.0,"runtime_seconds":220,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:17:00.179099+02:00","total_cpu_percent":21.49053955078125,"total_memory_gb":2.0089375},{"memory_usage_percent":5.699496799045138,"npu_usage_percent":-1.0,"runtime_seconds":230,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:17:10.262560+02:00","total_cpu_percent":21.472728729248047,"total_memory_gb":2.1010625},{"memory_usage_percent":6.203460693359376,"npu_usage_percent":-1.0,"runtime_seconds":250,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:17:29.900208+02:00","total_cpu_percent":21.374088287353516,"total_memory_gb":2.28684375},{"memory_usage_percent":6.746080186631945,"npu_usage_percent":-1.0,"runtime_seconds":260,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:17:40.011608+02:00","total_cpu_percent":25.142934799194336,"total_memory_gb":2.486875},{"memory_usage_percent":7.047822740342882,"npu_usage_percent":-1.0,"runtime_seconds":270,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:17:50.103248+02:00","total_cpu_percent":30.295015335083008,"total_memory_gb":2.598109375},{"memory_usage_percent":7.246441311306424,"npu_usage_percent":-1.0,"runtime_seconds":280,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:18:00.192246+02:00","total_cpu_percent":27.140586853027344,"total_memory_gb":2.671328125},{"memory_usage_percent":7.504060533311632,"npu_usage_percent":-1.0,"runtime_seconds":290,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:18:10.267410+02:00","total_cpu_percent":30.8995304107666,"total_memory_gb":2.766296875},{"memory_usage_percent":7.939487033420139,"npu_usage_percent":-1.0,"runtime_seconds":310,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:18:29.889465+02:00","total_cpu_percent":18.350017547607425,"total_memory_gb":2.9268125},{"memory_usage_percent":8.11390346950955,"npu_usage_percent":-1.0,"runtime_seconds":320,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:18:39.983640+02:00","total_cpu_percent":16.71688461303711,"total_memory_gb":2.991109375},{"memory_usage_percent":8.038881089952257,"npu_usage_percent":-1.0,"runtime_seconds":330,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:18:50.069812+02:00","total_cpu_percent":13.102831840515137,"total_memory_gb":2.963453125},{"memory_usage_percent":8.392122056749132,"npu_usage_percent":-1.0,"runtime_seconds":340,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:19:00.168383+02:00","total_cpu_percent":23.546918869018555,"total_memory_gb":3.093671875},{"memory_usage_percent":8.700349595811632,"npu_usage_percent":-1.0,"runtime_seconds":350,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:19:10.242092+02:00","total_cpu_percent":24.285266876220703,"total_memory_gb":3.207296875},{"memory_usage_percent":8.813518948025175,"npu_usage_percent":-1.0,"runtime_seconds":370,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:19:29.884914+02:00","total_cpu_percent":13.327067375183104,"total_memory_gb":3.249015625},{"memory_usage_percent":8.789571126302084,"npu_usage_percent":-1.0,"runtime_seconds":380,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:19:39.963164+02:00","total_cpu_percent":11.234607696533203,"total_memory_gb":3.2401875},{"memory_usage_percent":6.737094455295139,"npu_usage_percent":-1.0,"runtime_seconds":390,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:19:50.052145+02:00","total_cpu_percent":24.26458740234375,"total_memory_gb":2.4835625},{"memory_usage_percent":6.937874688042535,"npu_usage_percent":-1.0,"runtime_seconds":400,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:20:00.126634+02:00","total_cpu_percent":29.110654830932617,"total_memory_gb":2.557578125},{"memory_usage_percent":7.234234280056424,"npu_usage_percent":-1.0,"runtime_seconds":410,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:20:10.197387+02:00","total_cpu_percent":29.85594367980957,"total_memory_gb":2.666828125},{"memory_usage_percent":7.635286119249132,"npu_usage_percent":-1.0,"runtime_seconds":430,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:20:29.885073+02:00","total_cpu_percent":24.954212188720703,"total_memory_gb":2.814671875},{"memory_usage_percent":7.866329616970487,"npu_usage_percent":-1.0,"runtime_seconds":440,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:20:39.987761+02:00","total_cpu_percent":32.54705810546875,"total_memory_gb":2.89984375},{"memory_usage_percent":8.078681098090277,"npu_usage_percent":-1.0,"runtime_seconds":450,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:20:50.069299+02:00","total_cpu_percent":23.641414642333984,"total_memory_gb":2.978125},{"memory_usage_percent":8.161332872178821,"npu_usage_percent":-1.0,"runtime_seconds":460,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:21:00.149086+02:00","total_cpu_percent":11.686677932739258,"total_memory_gb":3.00859375},{"memory_usage_percent":8.252249823676214,"npu_usage_percent":-1.0,"runtime_seconds":470,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:21:10.232093+02:00","total_cpu_percent":32.132896423339844,"total_memory_gb":3.042109375},{"memory_usage_percent":8.960978190104168,"npu_usage_percent":-1.0,"runtime_seconds":490,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:21:29.890905+02:00","total_cpu_percent":27.50463104248047,"total_memory_gb":3.303375},{"memory_usage_percent":9.20210944281684,"npu_usage_percent":-1.0,"runtime_seconds":500,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:21:39.965284+02:00","total_cpu_percent":26.058866500854492,"total_memory_gb":3.392265625},{"memory_usage_percent":9.384579128689236,"npu_usage_percent":-1.0,"runtime_seconds":510,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:21:50.070868+02:00","total_cpu_percent":27.313566207885746,"total_memory_gb":3.45953125},{"memory_usage_percent":9.663348727756077,"npu_usage_percent":-1.0,"runtime_seconds":520,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:22:00.144148+02:00","total_cpu_percent":33.53175735473633,"total_memory_gb":3.562296875},{"memory_usage_percent":9.940422905815971,"npu_usage_percent":-1.0,"runtime_seconds":530,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:22:10.245350+02:00","total_cpu_percent":33.78166198730469,"total_memory_gb":3.6644375},{"memory_usage_percent":9.930377536349829,"npu_usage_percent":-1.0,"runtime_seconds":550,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:22:29.923822+02:00","total_cpu_percent":27.054725646972656,"total_memory_gb":3.660734375},{"memory_usage_percent":10.174984402126736,"npu_usage_percent":-1.0,"runtime_seconds":560,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:22:40.037261+02:00","total_cpu_percent":27.290422439575195,"total_memory_gb":3.75090625},{"memory_usage_percent":7.97670152452257,"npu_usage_percent":-1.0,"runtime_seconds":570,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:22:50.119453+02:00","total_cpu_percent":15.217323303222656,"total_memory_gb":2.94053125},{"memory_usage_percent":8.65995619032118,"npu_usage_percent":-1.0,"runtime_seconds":580,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:23:00.217447+02:00","total_cpu_percent":36.12694549560547,"total_memory_gb":3.19240625},{"memory_usage_percent":8.78469679090712,"npu_usage_percent":-1.0,"runtime_seconds":590,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:23:10.325322+02:00","total_cpu_percent":30.875991821289062,"total_memory_gb":3.238390625},{"memory_usage_percent":8.995691935221355,"npu_usage_percent":-1.0,"runtime_seconds":610,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:23:29.921886+02:00","total_cpu_percent":22.790374755859375,"total_memory_gb":3.316171875},{"memory_usage_percent":9.191131591796877,"npu_usage_percent":-1.0,"runtime_seconds":620,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:23:40.032347+02:00","total_cpu_percent":22.7918643951416,"total_memory_gb":3.38821875},{"memory_usage_percent":9.68343946668837,"npu_usage_percent":-1.0,"runtime_seconds":630,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:23:50.142834+02:00","total_cpu_percent":34.56802749633789,"total_memory_gb":3.569703125},{"memory_usage_percent":9.807671440972223,"npu_usage_percent":-1.0,"runtime_seconds":640,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:24:00.229576+02:00","total_cpu_percent":28.319934844970703,"total_memory_gb":3.6155}]
\ No newline at end of file
diff --git a/resource_usage_20240822_145021.json b/resource_usage_20240822_145021.json
new file mode 100644
index 000000000..f00abe395
--- /dev/null
+++ b/resource_usage_20240822_145021.json
@@ -0,0 +1 @@
+[{"memory_usage_percent":1.794475979275174,"npu_usage_percent":-1.0,"runtime_seconds":10,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:50:32.134659+02:00","total_cpu_percent":0.0,"total_memory_gb":0.661515625},{"memory_usage_percent":2.559153238932292,"npu_usage_percent":-1.0,"runtime_seconds":20,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:50:42.234660+02:00","total_cpu_percent":21.78717041015625,"total_memory_gb":0.94340625},{"memory_usage_percent":3.1659868028428817,"npu_usage_percent":-1.0,"runtime_seconds":30,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:50:52.349562+02:00","total_cpu_percent":25.8923282623291,"total_memory_gb":1.167109375},{"memory_usage_percent":3.1812032063802085,"npu_usage_percent":-1.0,"runtime_seconds":40,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:51:02.427866+02:00","total_cpu_percent":14.796483993530272,"total_memory_gb":1.17271875},{"memory_usage_percent":3.346125284830729,"npu_usage_percent":-1.0,"runtime_seconds":50,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:51:12.531379+02:00","total_cpu_percent":16.602298736572266,"total_memory_gb":1.233515625},{"memory_usage_percent":3.372743394639757,"npu_usage_percent":-1.0,"runtime_seconds":70,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:51:32.143503+02:00","total_cpu_percent":10.166316032409668,"total_memory_gb":1.243328125},{"memory_usage_percent":3.370496961805556,"npu_usage_percent":-1.0,"runtime_seconds":80,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:51:42.249910+02:00","total_cpu_percent":10.964397430419922,"total_memory_gb":1.2425},{"memory_usage_percent":3.371217515733507,"npu_usage_percent":-1.0,"runtime_seconds":90,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:51:52.359678+02:00","total_cpu_percent":10.296838760375977,"total_memory_gb":1.242765625},{"memory_usage_percent":3.5602569580078125,"npu_usage_percent":-1.0,"runtime_seconds":100,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:52:02.476634+02:00","total_cpu_percent":19.71533966064453,"total_memory_gb":1.312453125},{"memory_usage_percent":3.609805636935764,"npu_usage_percent":-1.0,"runtime_seconds":110,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:52:12.591519+02:00","total_cpu_percent":19.96871566772461,"total_memory_gb":1.33071875},{"memory_usage_percent":3.610526190863715,"npu_usage_percent":-1.0,"runtime_seconds":130,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:52:32.153412+02:00","total_cpu_percent":11.186605453491213,"total_memory_gb":1.330984375},{"memory_usage_percent":3.903071085611979,"npu_usage_percent":-1.0,"runtime_seconds":140,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:52:42.225198+02:00","total_cpu_percent":17.91773796081543,"total_memory_gb":1.438828125},{"memory_usage_percent":3.95249260796441,"npu_usage_percent":-1.0,"runtime_seconds":150,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:52:52.319346+02:00","total_cpu_percent":15.506206512451172,"total_memory_gb":1.457046875},{"memory_usage_percent":3.9612240261501737,"npu_usage_percent":-1.0,"runtime_seconds":160,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:53:02.430869+02:00","total_cpu_percent":17.239213943481445,"total_memory_gb":1.460265625},{"memory_usage_percent":4.432805379231771,"npu_usage_percent":-1.0,"runtime_seconds":170,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:53:12.544059+02:00","total_cpu_percent":30.62015151977539,"total_memory_gb":1.634109375},{"memory_usage_percent":5.442555745442709,"npu_usage_percent":-1.0,"runtime_seconds":190,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:53:32.150264+02:00","total_cpu_percent":23.487014770507812,"total_memory_gb":2.00634375},{"memory_usage_percent":5.724885728624133,"npu_usage_percent":-1.0,"runtime_seconds":200,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:53:42.227539+02:00","total_cpu_percent":19.569969177246097,"total_memory_gb":2.110421875},{"memory_usage_percent":6.036885579427084,"npu_usage_percent":-1.0,"runtime_seconds":210,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:53:52.338801+02:00","total_cpu_percent":16.84784507751465,"total_memory_gb":2.2254375},{"memory_usage_percent":6.037902832031251,"npu_usage_percent":-1.0,"runtime_seconds":220,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:54:02.457470+02:00","total_cpu_percent":15.729570388793944,"total_memory_gb":2.2258125},{"memory_usage_percent":6.03989495171441,"npu_usage_percent":-1.0,"runtime_seconds":230,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:54:12.573304+02:00","total_cpu_percent":13.433241844177246,"total_memory_gb":2.226546875},{"memory_usage_percent":6.3812255859375,"npu_usage_percent":-1.0,"runtime_seconds":250,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:54:32.151893+02:00","total_cpu_percent":14.853899955749512,"total_memory_gb":2.352375},{"memory_usage_percent":6.673855251736111,"npu_usage_percent":-1.0,"runtime_seconds":260,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:54:42.249018+02:00","total_cpu_percent":20.683801651000977,"total_memory_gb":2.46025},{"memory_usage_percent":6.952709621853299,"npu_usage_percent":-1.0,"runtime_seconds":270,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:54:52.359464+02:00","total_cpu_percent":18.4374942779541,"total_memory_gb":2.563046875},{"memory_usage_percent":7.209523518880209,"npu_usage_percent":-1.0,"runtime_seconds":280,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:55:02.431527+02:00","total_cpu_percent":20.319150924682617,"total_memory_gb":2.65771875},{"memory_usage_percent":7.4537913004557295,"npu_usage_percent":-1.0,"runtime_seconds":290,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:55:12.503458+02:00","total_cpu_percent":21.81665802001953,"total_memory_gb":2.747765625},{"memory_usage_percent":7.797241210937502,"npu_usage_percent":-1.0,"runtime_seconds":310,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:55:32.149127+02:00","total_cpu_percent":14.830682754516602,"total_memory_gb":2.874375},{"memory_usage_percent":8.250045776367188,"npu_usage_percent":-1.0,"runtime_seconds":320,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:55:42.262183+02:00","total_cpu_percent":26.260507583618164,"total_memory_gb":3.041296875},{"memory_usage_percent":8.587561713324652,"npu_usage_percent":-1.0,"runtime_seconds":330,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:55:52.379944+02:00","total_cpu_percent":19.55741500854492,"total_memory_gb":3.16571875},{"memory_usage_percent":8.587943183051216,"npu_usage_percent":-1.0,"runtime_seconds":340,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:56:02.493881+02:00","total_cpu_percent":15.94070529937744,"total_memory_gb":3.165859375},{"memory_usage_percent":8.565054999457464,"npu_usage_percent":-1.0,"runtime_seconds":350,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:56:12.610914+02:00","total_cpu_percent":13.749300003051758,"total_memory_gb":3.157421875},{"memory_usage_percent":8.853658040364582,"npu_usage_percent":-1.0,"runtime_seconds":370,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:56:32.157529+02:00","total_cpu_percent":14.480024337768556,"total_memory_gb":3.2638125},{"memory_usage_percent":9.29022894965278,"npu_usage_percent":-1.0,"runtime_seconds":380,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:56:42.266192+02:00","total_cpu_percent":31.376211166381836,"total_memory_gb":3.42475},{"memory_usage_percent":9.834077623155382,"npu_usage_percent":-1.0,"runtime_seconds":390,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:56:52.374332+02:00","total_cpu_percent":24.69141960144043,"total_memory_gb":3.625234375},{"memory_usage_percent":9.894985622829862,"npu_usage_percent":-1.0,"runtime_seconds":400,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:57:02.475679+02:00","total_cpu_percent":17.848976135253906,"total_memory_gb":3.6476875},{"memory_usage_percent":9.87091064453125,"npu_usage_percent":-1.0,"runtime_seconds":410,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:57:12.576876+02:00","total_cpu_percent":13.77892780303955,"total_memory_gb":3.6388125},{"memory_usage_percent":7.920371161566841,"npu_usage_percent":-1.0,"runtime_seconds":430,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:57:32.125784+02:00","total_cpu_percent":14.27842140197754,"total_memory_gb":2.919765625},{"memory_usage_percent":8.297517564561632,"npu_usage_percent":-1.0,"runtime_seconds":440,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:57:42.228162+02:00","total_cpu_percent":19.988237380981445,"total_memory_gb":3.058796875},{"memory_usage_percent":8.813179863823786,"npu_usage_percent":-1.0,"runtime_seconds":450,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:57:52.332268+02:00","total_cpu_percent":18.41856384277344,"total_memory_gb":3.248890625},{"memory_usage_percent":9.302732679578996,"npu_usage_percent":-1.0,"runtime_seconds":460,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:58:02.438783+02:00","total_cpu_percent":25.889083862304688,"total_memory_gb":3.429359375},{"memory_usage_percent":9.527291191948786,"npu_usage_percent":-1.0,"runtime_seconds":470,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:58:12.552724+02:00","total_cpu_percent":19.8822021484375,"total_memory_gb":3.512140625},{"memory_usage_percent":10.296207004123264,"npu_usage_percent":-1.0,"runtime_seconds":490,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:58:32.145037+02:00","total_cpu_percent":20.98644638061523,"total_memory_gb":3.79559375},{"memory_usage_percent":10.27700636121962,"npu_usage_percent":-1.0,"runtime_seconds":500,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:58:42.234932+02:00","total_cpu_percent":35.36628341674805,"total_memory_gb":3.788515625},{"memory_usage_percent":10.031678941514755,"npu_usage_percent":-1.0,"runtime_seconds":510,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:58:52.335331+02:00","total_cpu_percent":25.828033447265625,"total_memory_gb":3.698078125},{"memory_usage_percent":9.628719753689236,"npu_usage_percent":-1.0,"runtime_seconds":520,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:59:02.405818+02:00","total_cpu_percent":32.951725006103516,"total_memory_gb":3.54953125},{"memory_usage_percent":9.58239237467448,"npu_usage_percent":-1.0,"runtime_seconds":530,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:59:12.479777+02:00","total_cpu_percent":33.178062438964844,"total_memory_gb":3.532453125},{"memory_usage_percent":10.584386189778646,"npu_usage_percent":-1.0,"runtime_seconds":550,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:59:32.146299+02:00","total_cpu_percent":27.471038818359375,"total_memory_gb":3.901828125},{"memory_usage_percent":11.233096652560764,"npu_usage_percent":-1.0,"runtime_seconds":560,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T14:59:42.246664+02:00","total_cpu_percent":25.99407196044922,"total_memory_gb":4.14096875},{"memory_usage_percent":11.33058336046007,"npu_usage_percent":-1.0,"runtime_seconds":571,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:03:46.838451+02:00","total_cpu_percent":17.533519744873047,"total_memory_gb":4.17690625},{"memory_usage_percent":10.24110582139757,"npu_usage_percent":-1.0,"runtime_seconds":581,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:03:56.946942+02:00","total_cpu_percent":2.440335988998413,"total_memory_gb":3.77528125},{"memory_usage_percent":10.451846652560764,"npu_usage_percent":-1.0,"runtime_seconds":591,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:21:09.465554+02:00","total_cpu_percent":14.386441230773926,"total_memory_gb":3.85296875},{"memory_usage_percent":11.130396525065104,"npu_usage_percent":-1.0,"runtime_seconds":610,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:21:28.336261+02:00","total_cpu_percent":20.5516300201416,"total_memory_gb":4.103109375},{"memory_usage_percent":9.51372782389323,"npu_usage_percent":-1.0,"runtime_seconds":620,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:21:38.415458+02:00","total_cpu_percent":30.60647201538086,"total_memory_gb":3.507140625},{"memory_usage_percent":8.260642157660591,"npu_usage_percent":-1.0,"runtime_seconds":630,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:21:48.523935+02:00","total_cpu_percent":15.85034465789795,"total_memory_gb":3.045203125},{"memory_usage_percent":8.683395385742188,"npu_usage_percent":-1.0,"runtime_seconds":640,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:21:58.624674+02:00","total_cpu_percent":17.40882682800293,"total_memory_gb":3.201046875},{"memory_usage_percent":9.13484361436632,"npu_usage_percent":-1.0,"runtime_seconds":650,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:22:08.720500+02:00","total_cpu_percent":19.84847640991211,"total_memory_gb":3.36746875},{"memory_usage_percent":10.219913058810764,"npu_usage_percent":-1.0,"runtime_seconds":670,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:22:28.298485+02:00","total_cpu_percent":19.0515193939209,"total_memory_gb":3.76746875},{"memory_usage_percent":10.54933336046007,"npu_usage_percent":-1.0,"runtime_seconds":680,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:22:38.401321+02:00","total_cpu_percent":21.748779296875,"total_memory_gb":3.88890625},{"memory_usage_percent":10.915247599283855,"npu_usage_percent":-1.0,"runtime_seconds":690,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:22:48.506729+02:00","total_cpu_percent":16.22283363342285,"total_memory_gb":4.023796875},{"memory_usage_percent":11.645677354600696,"npu_usage_percent":-1.0,"runtime_seconds":700,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:22:58.580770+02:00","total_cpu_percent":34.399532318115234,"total_memory_gb":4.2930625},{"memory_usage_percent":12.064827813042536,"npu_usage_percent":-1.0,"runtime_seconds":710,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:23:08.690672+02:00","total_cpu_percent":38.46708679199219,"total_memory_gb":4.447578125},{"memory_usage_percent":12.219068739149307,"npu_usage_percent":-1.0,"runtime_seconds":730,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:23:28.320110+02:00","total_cpu_percent":34.881507873535156,"total_memory_gb":4.5044375},{"memory_usage_percent":12.501949734157987,"npu_usage_percent":-1.0,"runtime_seconds":740,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:23:38.394801+02:00","total_cpu_percent":27.58768653869629,"total_memory_gb":4.60871875},{"memory_usage_percent":12.83802456325955,"npu_usage_percent":-1.0,"runtime_seconds":750,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:23:48.489295+02:00","total_cpu_percent":17.870845794677734,"total_memory_gb":4.732609375},{"memory_usage_percent":13.192791408962677,"npu_usage_percent":-1.0,"runtime_seconds":760,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:23:58.600995+02:00","total_cpu_percent":31.202377319335938,"total_memory_gb":4.863390625},{"memory_usage_percent":13.592910766601562,"npu_usage_percent":-1.0,"runtime_seconds":770,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:24:08.670862+02:00","total_cpu_percent":27.755277633666992,"total_memory_gb":5.010890625},{"memory_usage_percent":14.101282755533854,"npu_usage_percent":-1.0,"runtime_seconds":790,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:24:28.290971+02:00","total_cpu_percent":39.24396133422851,"total_memory_gb":5.198296875},{"memory_usage_percent":14.389038085937504,"npu_usage_percent":-1.0,"runtime_seconds":800,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:24:38.395506+02:00","total_cpu_percent":33.894676208496094,"total_memory_gb":5.304375},{"memory_usage_percent":14.604229397243923,"npu_usage_percent":-1.0,"runtime_seconds":810,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:24:48.476333+02:00","total_cpu_percent":14.19855785369873,"total_memory_gb":5.383703125},{"memory_usage_percent":15.131378173828129,"npu_usage_percent":-1.0,"runtime_seconds":820,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:24:58.583377+02:00","total_cpu_percent":30.189903259277344,"total_memory_gb":5.57803125},{"memory_usage_percent":15.631484985351566,"npu_usage_percent":-1.0,"runtime_seconds":830,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:25:08.664302+02:00","total_cpu_percent":30.65396499633789,"total_memory_gb":5.762390625},{"memory_usage_percent":15.498648749457466,"npu_usage_percent":-1.0,"runtime_seconds":850,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:25:28.291269+02:00","total_cpu_percent":25.76715660095215,"total_memory_gb":5.713421875},{"memory_usage_percent":11.883629692925348,"npu_usage_percent":-1.0,"runtime_seconds":860,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:25:38.400909+02:00","total_cpu_percent":26.702457427978516,"total_memory_gb":4.38078125},{"memory_usage_percent":11.671490139431423,"npu_usage_percent":-1.0,"runtime_seconds":870,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:25:48.489209+02:00","total_cpu_percent":25.612695693969727,"total_memory_gb":4.302578125},{"memory_usage_percent":11.761983235677084,"npu_usage_percent":-1.0,"runtime_seconds":880,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:25:58.593903+02:00","total_cpu_percent":17.0987491607666,"total_memory_gb":4.3359375},{"memory_usage_percent":11.923260158962677,"npu_usage_percent":-1.0,"runtime_seconds":890,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:26:08.708934+02:00","total_cpu_percent":28.053815841674805,"total_memory_gb":4.395390625},{"memory_usage_percent":11.623679267035593,"npu_usage_percent":-1.0,"runtime_seconds":910,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:26:28.305371+02:00","total_cpu_percent":25.92759132385254,"total_memory_gb":4.284953125},{"memory_usage_percent":12.10619608561198,"npu_usage_percent":-1.0,"runtime_seconds":920,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:26:38.379890+02:00","total_cpu_percent":29.33268165588379,"total_memory_gb":4.462828125},{"memory_usage_percent":12.13260226779514,"npu_usage_percent":-1.0,"runtime_seconds":930,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:26:48.491971+02:00","total_cpu_percent":13.57821559906006,"total_memory_gb":4.4725625},{"memory_usage_percent":12.508477105034723,"npu_usage_percent":-1.0,"runtime_seconds":940,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:26:58.603900+02:00","total_cpu_percent":27.43521499633789,"total_memory_gb":4.611125},{"memory_usage_percent":12.845950656467014,"npu_usage_percent":-1.0,"runtime_seconds":950,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:27:08.708747+02:00","total_cpu_percent":37.28675842285156,"total_memory_gb":4.73553125},{"memory_usage_percent":13.85989718967014,"npu_usage_percent":-1.0,"runtime_seconds":970,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:27:28.319129+02:00","total_cpu_percent":26.26995849609375,"total_memory_gb":5.1093125},{"memory_usage_percent":14.106538560655382,"npu_usage_percent":-1.0,"runtime_seconds":980,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:27:38.395210+02:00","total_cpu_percent":20.40837860107422,"total_memory_gb":5.200234375},{"memory_usage_percent":14.569727579752604,"npu_usage_percent":-1.0,"runtime_seconds":990,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:27:48.502595+02:00","total_cpu_percent":23.57415199279785,"total_memory_gb":5.370984375},{"memory_usage_percent":14.73634507921007,"npu_usage_percent":-1.0,"runtime_seconds":1000,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:27:58.613968+02:00","total_cpu_percent":24.31115341186523,"total_memory_gb":5.43240625},{"memory_usage_percent":14.83472188313802,"npu_usage_percent":-1.0,"runtime_seconds":1010,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:28:08.731059+02:00","total_cpu_percent":21.9516544342041,"total_memory_gb":5.468671875},{"memory_usage_percent":15.907414754231771,"npu_usage_percent":-1.0,"runtime_seconds":1030,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:28:28.309237+02:00","total_cpu_percent":25.446083068847656,"total_memory_gb":5.864109375},{"memory_usage_percent":16.15490383572049,"npu_usage_percent":-1.0,"runtime_seconds":1040,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:28:38.388301+02:00","total_cpu_percent":31.334171295166016,"total_memory_gb":5.95534375},{"memory_usage_percent":16.68489244249132,"npu_usage_percent":-1.0,"runtime_seconds":1050,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:28:48.488289+02:00","total_cpu_percent":38.039676666259766,"total_memory_gb":6.15071875},{"memory_usage_percent":17.096455891927086,"npu_usage_percent":-1.0,"runtime_seconds":1060,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:28:58.567103+02:00","total_cpu_percent":29.863649368286133,"total_memory_gb":6.3024375},{"memory_usage_percent":16.3948482937283,"npu_usage_percent":-1.0,"runtime_seconds":1070,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:29:08.636569+02:00","total_cpu_percent":39.49068832397461,"total_memory_gb":6.043796875},{"memory_usage_percent":15.155877007378471,"npu_usage_percent":-1.0,"runtime_seconds":1090,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:29:28.286518+02:00","total_cpu_percent":31.560081481933594,"total_memory_gb":5.5870625},{"memory_usage_percent":15.44164021809896,"npu_usage_percent":-1.0,"runtime_seconds":1100,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:29:38.363238+02:00","total_cpu_percent":19.81407356262207,"total_memory_gb":5.69240625},{"memory_usage_percent":16.02325439453125,"npu_usage_percent":-1.0,"runtime_seconds":1110,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:29:48.449615+02:00","total_cpu_percent":38.85471725463867,"total_memory_gb":5.9068125},{"memory_usage_percent":16.522513495551216,"npu_usage_percent":-1.0,"runtime_seconds":1120,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:29:58.521263+02:00","total_cpu_percent":34.5108757019043,"total_memory_gb":6.090859375},{"memory_usage_percent":16.985744900173614,"npu_usage_percent":-1.0,"runtime_seconds":1130,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:30:08.592661+02:00","total_cpu_percent":32.242576599121094,"total_memory_gb":6.261625},{"memory_usage_percent":17.766274346245662,"npu_usage_percent":-1.0,"runtime_seconds":1150,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:30:28.319756+02:00","total_cpu_percent":29.960222244262695,"total_memory_gb":6.549359375},{"memory_usage_percent":16.54591030544705,"npu_usage_percent":-1.0,"runtime_seconds":1160,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:30:38.394985+02:00","total_cpu_percent":27.465923309326172,"total_memory_gb":6.099484375},{"memory_usage_percent":16.671456231011287,"npu_usage_percent":-1.0,"runtime_seconds":1170,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:30:48.473720+02:00","total_cpu_percent":28.577051162719727,"total_memory_gb":6.145765625},{"memory_usage_percent":16.911570231119793,"npu_usage_percent":-1.0,"runtime_seconds":1180,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:30:58.557991+02:00","total_cpu_percent":31.940332412719727,"total_memory_gb":6.23428125}]
\ No newline at end of file
diff --git a/resource_usage_20240822_153108.json b/resource_usage_20240822_153108.json
new file mode 100644
index 000000000..0637a088a
--- /dev/null
+++ b/resource_usage_20240822_153108.json
@@ -0,0 +1 @@
+[]
\ No newline at end of file
diff --git a/resource_usage_20240822_153148.json b/resource_usage_20240822_153148.json
new file mode 100644
index 000000000..0b843e6d1
--- /dev/null
+++ b/resource_usage_20240822_153148.json
@@ -0,0 +1 @@
+[{"memory_usage_percent":1.825035942925347,"npu_usage_percent":-1.0,"runtime_seconds":10,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:31:58.233758+02:00","total_cpu_percent":0.0,"total_memory_gb":0.67278125},{"memory_usage_percent":2.6611328125,"npu_usage_percent":-1.0,"runtime_seconds":20,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:32:08.326086+02:00","total_cpu_percent":22.25165557861328,"total_memory_gb":0.981},{"memory_usage_percent":3.191163804796007,"npu_usage_percent":-1.0,"runtime_seconds":30,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:32:18.432092+02:00","total_cpu_percent":26.44815444946289,"total_memory_gb":1.176390625},{"memory_usage_percent":3.791130913628472,"npu_usage_percent":-1.0,"runtime_seconds":40,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:32:28.509758+02:00","total_cpu_percent":28.457441329956055,"total_memory_gb":1.3975625},{"memory_usage_percent":4.202397664388021,"npu_usage_percent":-1.0,"runtime_seconds":50,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:32:38.578829+02:00","total_cpu_percent":31.559770584106445,"total_memory_gb":1.549171875},{"memory_usage_percent":5.276446872287326,"npu_usage_percent":-1.0,"runtime_seconds":70,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:32:58.241861+02:00","total_cpu_percent":32.200660705566406,"total_memory_gb":1.945109375},{"memory_usage_percent":5.783292982313369,"npu_usage_percent":-1.0,"runtime_seconds":80,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:33:08.314301+02:00","total_cpu_percent":25.87905502319336,"total_memory_gb":2.131953125},{"memory_usage_percent":5.839369032118056,"npu_usage_percent":-1.0,"runtime_seconds":90,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:33:18.419297+02:00","total_cpu_percent":16.69969940185547,"total_memory_gb":2.152625},{"memory_usage_percent":6.168026394314237,"npu_usage_percent":-1.0,"runtime_seconds":100,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:33:28.525640+02:00","total_cpu_percent":24.189067840576172,"total_memory_gb":2.27378125},{"memory_usage_percent":6.758668687608507,"npu_usage_percent":-1.0,"runtime_seconds":110,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:33:38.613437+02:00","total_cpu_percent":30.410228729248047,"total_memory_gb":2.491515625},{"memory_usage_percent":7.286071777343752,"npu_usage_percent":-1.0,"runtime_seconds":130,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:33:58.203496+02:00","total_cpu_percent":23.163904190063477,"total_memory_gb":2.6859375},{"memory_usage_percent":7.691192626953125,"npu_usage_percent":-1.0,"runtime_seconds":140,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:34:08.280218+02:00","total_cpu_percent":15.617347717285156,"total_memory_gb":2.83528125},{"memory_usage_percent":7.989247639973959,"npu_usage_percent":-1.0,"runtime_seconds":150,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:34:18.381095+02:00","total_cpu_percent":17.991621017456055,"total_memory_gb":2.94515625},{"memory_usage_percent":8.274035983615452,"npu_usage_percent":-1.0,"runtime_seconds":160,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:34:28.482406+02:00","total_cpu_percent":21.939252853393555,"total_memory_gb":3.050140625},{"memory_usage_percent":8.229192097981771,"npu_usage_percent":-1.0,"runtime_seconds":170,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:34:38.572117+02:00","total_cpu_percent":22.183279037475582,"total_memory_gb":3.033609375},{"memory_usage_percent":9.180111355251736,"npu_usage_percent":-1.0,"runtime_seconds":190,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:34:58.219823+02:00","total_cpu_percent":25.00270652770996,"total_memory_gb":3.38415625},{"memory_usage_percent":8.044136895073786,"npu_usage_percent":-1.0,"runtime_seconds":200,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:35:08.302939+02:00","total_cpu_percent":27.00819969177246,"total_memory_gb":2.965390625},{"memory_usage_percent":6.5563201904296875,"npu_usage_percent":-1.0,"runtime_seconds":210,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:35:18.407661+02:00","total_cpu_percent":15.791208267211914,"total_memory_gb":2.416921875},{"memory_usage_percent":7.053120930989584,"npu_usage_percent":-1.0,"runtime_seconds":220,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:35:28.508215+02:00","total_cpu_percent":19.569162368774418,"total_memory_gb":2.6000625},{"memory_usage_percent":7.334391276041667,"npu_usage_percent":-1.0,"runtime_seconds":230,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:35:38.603377+02:00","total_cpu_percent":16.9071044921875,"total_memory_gb":2.70375},{"memory_usage_percent":8.13412136501736,"npu_usage_percent":-1.0,"runtime_seconds":250,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:35:58.202980+02:00","total_cpu_percent":14.945589065551758,"total_memory_gb":2.9985625},{"memory_usage_percent":8.613077799479168,"npu_usage_percent":-1.0,"runtime_seconds":260,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:36:08.281487+02:00","total_cpu_percent":18.451763153076172,"total_memory_gb":3.175125},{"memory_usage_percent":9.133953518337677,"npu_usage_percent":-1.0,"runtime_seconds":270,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:36:18.386407+02:00","total_cpu_percent":16.10506820678711,"total_memory_gb":3.367140625},{"memory_usage_percent":9.629016452365452,"npu_usage_percent":-1.0,"runtime_seconds":280,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:36:28.501969+02:00","total_cpu_percent":19.725217819213867,"total_memory_gb":3.549640625},{"memory_usage_percent":10.237503051757812,"npu_usage_percent":-1.0,"runtime_seconds":290,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:36:38.591231+02:00","total_cpu_percent":19.208948135375977,"total_memory_gb":3.773953125},{"memory_usage_percent":10.93067593044705,"npu_usage_percent":-1.0,"runtime_seconds":310,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:36:58.244172+02:00","total_cpu_percent":16.67534065246582,"total_memory_gb":4.029484375},{"memory_usage_percent":11.399586995442707,"npu_usage_percent":-1.0,"runtime_seconds":320,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:37:08.363577+02:00","total_cpu_percent":19.300857543945312,"total_memory_gb":4.20234375},{"memory_usage_percent":11.942545572916668,"npu_usage_percent":-1.0,"runtime_seconds":330,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:37:18.484636+02:00","total_cpu_percent":17.844423294067383,"total_memory_gb":4.4025},{"memory_usage_percent":12.467787000868055,"npu_usage_percent":-1.0,"runtime_seconds":340,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:37:28.593259+02:00","total_cpu_percent":23.574203491210938,"total_memory_gb":4.596125},{"memory_usage_percent":12.748124864366323,"npu_usage_percent":-1.0,"runtime_seconds":350,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:37:38.672823+02:00","total_cpu_percent":23.74039077758789,"total_memory_gb":4.69946875},{"memory_usage_percent":10.879177517361112,"npu_usage_percent":-1.0,"runtime_seconds":370,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:37:58.224414+02:00","total_cpu_percent":20.6458740234375,"total_memory_gb":4.0105},{"memory_usage_percent":11.614481608072918,"npu_usage_percent":-1.0,"runtime_seconds":380,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:38:08.311488+02:00","total_cpu_percent":26.802114486694336,"total_memory_gb":4.2815625},{"memory_usage_percent":11.92673577202691,"npu_usage_percent":-1.0,"runtime_seconds":390,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:38:18.394575+02:00","total_cpu_percent":25.52591133117676,"total_memory_gb":4.396671875},{"memory_usage_percent":12.252722846137152,"npu_usage_percent":-1.0,"runtime_seconds":400,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:38:28.481224+02:00","total_cpu_percent":20.6964111328125,"total_memory_gb":4.51684375},{"memory_usage_percent":12.131373087565104,"npu_usage_percent":-1.0,"runtime_seconds":410,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:38:38.601144+02:00","total_cpu_percent":19.44553565979004,"total_memory_gb":4.472109375},{"memory_usage_percent":13.165452745225698,"npu_usage_percent":-1.0,"runtime_seconds":430,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:38:58.202450+02:00","total_cpu_percent":21.218215942382812,"total_memory_gb":4.8533125},{"memory_usage_percent":13.037872314453123,"npu_usage_percent":-1.0,"runtime_seconds":440,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:39:08.278723+02:00","total_cpu_percent":22.874834060668945,"total_memory_gb":4.80628125},{"memory_usage_percent":13.60621982150608,"npu_usage_percent":-1.0,"runtime_seconds":450,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:39:18.365783+02:00","total_cpu_percent":26.675439834594727,"total_memory_gb":5.015796875},{"memory_usage_percent":14.036009046766496,"npu_usage_percent":-1.0,"runtime_seconds":460,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:39:28.458082+02:00","total_cpu_percent":28.58930397033691,"total_memory_gb":5.174234375},{"memory_usage_percent":14.342710706922745,"npu_usage_percent":-1.0,"runtime_seconds":470,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:39:38.577202+02:00","total_cpu_percent":23.110254287719727,"total_memory_gb":5.287296875},{"memory_usage_percent":14.691331651475698,"npu_usage_percent":-1.0,"runtime_seconds":490,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:39:58.227594+02:00","total_cpu_percent":13.205048561096191,"total_memory_gb":5.4158125},{"memory_usage_percent":14.654922485351562,"npu_usage_percent":-1.0,"runtime_seconds":500,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:40:08.306715+02:00","total_cpu_percent":20.75387954711914,"total_memory_gb":5.402390625},{"memory_usage_percent":15.046310424804693,"npu_usage_percent":-1.0,"runtime_seconds":510,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:40:18.397257+02:00","total_cpu_percent":33.630096435546875,"total_memory_gb":5.546671875},{"memory_usage_percent":15.21182590060764,"npu_usage_percent":-1.0,"runtime_seconds":520,"system_total_memory_gb":36.864,"timestamp":"2024-08-22T15:40:28.510860+02:00","total_cpu_percent":29.127229690551758,"total_memory_gb":5.6076875}]
\ No newline at end of file
diff --git a/screenpipe-audio/src/core.rs b/screenpipe-audio/src/core.rs
index 10ed28aa7..5590076bd 100644
--- a/screenpipe-audio/src/core.rs
+++ b/screenpipe-audio/src/core.rs
@@ -450,7 +450,6 @@ pub async fn default_output_device() -> Result<AudioDevice> {
if let Ok(host) = cpal::host_from_id(cpal::HostId::ScreenCaptureKit) {
if let Some(device) = host.default_input_device() {
if let Ok(name) = device.name() {
- info!("Using display capture device: {}", name);
return Ok(AudioDevice::new(name, DeviceType::Output));
}
}
diff --git a/screenpipe-server/Cargo.toml b/screenpipe-server/Cargo.toml
index bc1465840..49d84d923 100644
--- a/screenpipe-server/Cargo.toml
+++ b/screenpipe-server/Cargo.toml
@@ -127,10 +127,6 @@ pipes = ["screenpipe-core/pipes"]
name = "screenpipe"
path = "src/bin/screenpipe-server.rs"
-[[bin]]
-name = "screenpipe-video"
-path = "src/bin/screenpipe-video.rs"
-
[[bin]]
name = "screenpipe-pipe-runner"
path = "src/bin/screenpipe-pipe-runner.rs"
diff --git a/screenpipe-server/src/bin/screenpipe-video.rs b/screenpipe-server/src/bin/screenpipe-video.rs
deleted file mode 100644
index ce62fe5c3..000000000
--- a/screenpipe-server/src/bin/screenpipe-video.rs
+++ /dev/null
@@ -1,119 +0,0 @@
-use chrono::Utc;
-use clap::Parser;
-use env_logger::Env;
-use image::GenericImageView;
-use log::info;
-use screenpipe_server::VideoCapture;
-use screenpipe_vision::monitor::list_monitors;
-use screenpipe_vision::OcrEngine;
-use serde_json::{json, Value};
-use std::fs::{File, OpenOptions};
-use std::io::{BufWriter, Write};
-use std::sync::{Arc, Mutex};
-use std::thread;
-use std::time::Duration;
-use tokio::sync::mpsc::{channel, Receiver, Sender}; // Correct import
-
-#[derive(Parser)]
-#[command(author, version, about, long_about = None)]
-struct Cli {
- /// Save text files
- #[arg(long, default_value_t = false)]
- save_text_files: bool,
-
- /// Disable cloud OCR processing
- #[arg(long, default_value_t = false)]
- cloud_ocr_off: bool, // Add this flag
-}
-
-fn write_json_frame(writer: &mut BufWriter<File>, frame_data: &Value) -> std::io::Result<()> {
- serde_json::to_writer(writer.by_ref(), frame_data)?;
- writeln!(writer)?;
- writer.flush()
-}
-
-// ! not well maintained code
-
-#[tokio::main]
-async fn main() {
- env_logger::Builder::from_env(Env::default().default_filter_or("info")).init();
-
- let cli = Cli::parse();
- let save_text_files = cli.save_text_files;
-
- let time = Utc::now();
- let formatted_time = time.format("%Y-%m-%d_%H-%M-%S").to_string();
- let output_path = "data";
- let json_output_path = format!("data/{}.json", formatted_time);
-
- // create dir if not exists
- std::fs::create_dir_all("data").unwrap_or_default();
- info!("Created data directory {}", output_path);
- let fps = 10.0;
- let monitor_id = list_monitors().await.first().unwrap().id();
-
- let new_chunk_callback = {
- move |file_path: &str| {
- info!("New chunk: {}", file_path);
- }
- };
-
- let video_capture = VideoCapture::new(
- output_path,
- fps,
- new_chunk_callback,
- save_text_files,
- Arc::new(OcrEngine::Tesseract),
- monitor_id,
- ); // Pass the cloud_ocr flag
- let (_tx, rx): (Sender<()>, Receiver<()>) = channel(32);
- let rx = Arc::new(Mutex::new(rx));
- let rx_thread = rx.clone();
-
- thread::spawn(move || loop {
- if let Ok(_) = rx_thread.lock().unwrap().try_recv() {
- break;
- }
- thread::sleep(Duration::from_millis(100));
- });
-
- println!("Press Ctrl+C to stop recording...");
-
- let json_file = OpenOptions::new()
- .create(true)
- .append(true)
- .open(&json_output_path)
- .expect("Failed to create JSON file");
- let mut json_writer = BufWriter::new(json_file);
-
- let mut frame_count = 0;
-
- loop {
- if let Some(frame) = video_capture.get_latest_frame().await {
- info!("Captured frame size: {:?}", frame.image.dimensions());
- info!("OCR Text len: {}", frame.window_ocr_results.iter().map(|w| w.text.len()).sum::<usize>());
-
- let frame_data = json!({
- "frame": frame_count,
- "timestamp": frame_count as f64 / fps,
- "ocr_text": frame.window_ocr_results.iter().map(|w| w.text.clone()).collect::<Vec<String>>().join(" "),
- "text_json": frame.window_ocr_results.iter().flat_map(|w| w.text_json.clone()).collect::<Vec<_>>(),
- });
-
- write_json_frame(&mut json_writer, &frame_data).expect("Failed to write JSON frame");
-
- frame_count += 1;
- }
-
- if let Err(_) = rx.lock().unwrap().try_recv() {
- // Channel is empty, continue recording
- thread::sleep(Duration::from_millis(33)); // ~30 fps
- } else {
- // Received stop signal
- break;
- }
- }
-
- println!("Video capture completed. Output saved to: {}", output_path);
- println!("JSON data saved to: {}", json_output_path);
-}
\ No newline at end of file
diff --git a/screenpipe-server/src/core.rs b/screenpipe-server/src/core.rs
index a9b5a9604..6f6649ef6 100644
--- a/screenpipe-server/src/core.rs
+++ b/screenpipe-server/src/core.rs
@@ -157,7 +157,7 @@ async fn record_video(
);
while is_running.load(Ordering::SeqCst) {
- if let Some(frame) = video_capture.ocr_frame_queue.lock().await.pop_front() {
+ if let Some(frame) = video_capture.ocr_frame_queue.pop() {
for window_result in &frame.window_ocr_results {
match db.insert_frame().await {
Ok(frame_id) => {
diff --git a/screenpipe-server/src/video.rs b/screenpipe-server/src/video.rs
index 16f947e9c..5402ad9ad 100644
--- a/screenpipe-server/src/video.rs
+++ b/screenpipe-server/src/video.rs
@@ -1,26 +1,28 @@
use chrono::Utc;
+use crossbeam::queue::ArrayQueue;
use image::ImageFormat::{self};
-use log::{debug, error, info, warn};
+use log::{debug, error};
+use log::{info, warn};
use screenpipe_core::find_ffmpeg_path;
use screenpipe_vision::{continuous_capture, CaptureResult, OcrEngine};
-use std::collections::VecDeque;
use std::path::PathBuf;
use std::process::Stdio;
use std::sync::Arc;
+use std::time::Duration;
use tokio::io::AsyncWriteExt;
use tokio::io::{AsyncBufReadExt, BufReader};
use tokio::process::{Child, ChildStdin, Command};
use tokio::sync::mpsc::{channel, Receiver, Sender};
-use tokio::sync::Mutex;
-
-use std::time::Duration;
const MAX_FPS: f64 = 30.0; // Adjust based on your needs
+const MAX_QUEUE_SIZE: usize = 100;
pub struct VideoCapture {
- frame_queue: Arc<Mutex<VecDeque<CaptureResult>>>,
- video_frame_queue: Arc<Mutex<VecDeque<CaptureResult>>>,
- pub ocr_frame_queue: Arc<Mutex<VecDeque<CaptureResult>>>,
+ #[allow(unused)]
+ frame_queue: Arc<ArrayQueue<Arc<CaptureResult>>>,
+ #[allow(unused)]
+ video_frame_queue: Arc<ArrayQueue<Arc<CaptureResult>>>,
+ pub ocr_frame_queue: Arc<ArrayQueue<Arc<CaptureResult>>>,
}
impl VideoCapture {
@@ -33,9 +35,9 @@ impl VideoCapture {
monitor_id: u32,
) -> Self {
info!("Starting new video capture");
- let frame_queue = Arc::new(Mutex::new(VecDeque::new()));
- let video_frame_queue = Arc::new(Mutex::new(VecDeque::new()));
- let ocr_frame_queue = Arc::new(Mutex::new(VecDeque::new()));
+ let frame_queue = Arc::new(ArrayQueue::new(MAX_QUEUE_SIZE));
+ let video_frame_queue = Arc::new(ArrayQueue::new(MAX_QUEUE_SIZE));
+ let ocr_frame_queue = Arc::new(ArrayQueue::new(MAX_QUEUE_SIZE));
let new_chunk_callback = Arc::new(new_chunk_callback);
let new_chunk_callback_clone = Arc::clone(&new_chunk_callback);
@@ -56,27 +58,60 @@ impl VideoCapture {
info!("Started capture thread");
- // Spawn another thread to handle receiving and queueing the results
+ // In the _queue_thread
let _queue_thread = tokio::spawn(async move {
+ // Helper function to push to queue and handle errors
+ fn push_to_queue(
+ queue: &ArrayQueue<Arc<CaptureResult>>,
+ result: &Arc<CaptureResult>,
+ queue_name: &str,
+ ) -> bool {
+ if queue.push(Arc::clone(result)).is_err() {
+ if queue.pop().is_none() {
+ error!("{} queue is in an inconsistent state", queue_name);
+ return false;
+ }
+ if queue.push(Arc::clone(result)).is_err() {
+ error!(
+ "Failed to push to {} queue after removing oldest frame",
+ queue_name
+ );
+ return false;
+ }
+ debug!("{} queue was full, dropped oldest frame", queue_name);
+ }
+ true
+ }
while let Some(result) = result_receiver.recv().await {
let frame_number = result.frame_number;
debug!("Received frame {} for queueing", frame_number);
- let mut queue = capture_frame_queue.lock().await;
- let mut video_queue = capture_video_frame_queue.lock().await;
- let mut ocr_queue = capture_ocr_frame_queue.lock().await;
- queue.push_back(result.clone());
- video_queue.push_back(result.clone());
- ocr_queue.push_back(result);
- debug!("Frame {} pushed to queues. Queue length: {}, Video queue length: {}, OCR queue length: {}", frame_number, queue.len(), video_queue.len(), ocr_queue.len());
-
- // Clear the old queue after processing
- if queue.len() > 1 {
- queue.pop_front();
+
+ let result = Arc::new(result);
+
+ let frame_pushed = push_to_queue(&capture_frame_queue, &result, "Frame");
+ let video_pushed = push_to_queue(&capture_video_frame_queue, &result, "Video");
+ let ocr_pushed = push_to_queue(&capture_ocr_frame_queue, &result, "OCR");
+
+ if !frame_pushed || !video_pushed || !ocr_pushed {
+ error!(
+ "Failed to push frame {} to one or more queues",
+ frame_number
+ );
+ continue; // Skip to next iteration instead of crashing
}
+
+ debug!(
+ "Frame {} pushed to queues. Queue lengths: {}, {}, {}",
+ frame_number,
+ capture_frame_queue.len(),
+ capture_video_frame_queue.len(),
+ capture_ocr_frame_queue.len()
+ );
}
});
let video_frame_queue_clone = video_frame_queue.clone();
+
let output_path = output_path.to_string();
let _video_thread = tokio::spawn(async move {
save_frames_as_video(
@@ -94,20 +129,9 @@ impl VideoCapture {
ocr_frame_queue,
}
}
-
- pub async fn get_latest_frame(&self) -> Option<CaptureResult> {
- let mut queue = self.frame_queue.lock().await;
- let queue_length = queue.len();
- debug!("Number of frames in queue before popping: {}", queue_length);
- queue.pop_front()
- }
-
- pub fn get_video_frame_queue(&self) -> Arc<Mutex<VecDeque<CaptureResult>>> {
- Arc::clone(&self.video_frame_queue)
- }
}
async fn save_frames_as_video(
- frame_queue: &Arc<Mutex<VecDeque<CaptureResult>>>,
+ frame_queue: &Arc<ArrayQueue<Arc<CaptureResult>>>,
output_path: &str,
fps: f64,
new_chunk_callback: Arc<dyn Fn(&str) + Send + Sync>,
@@ -138,7 +162,7 @@ async fn save_frames_as_video(
// Wait for at least one frame before starting a new FFmpeg process
let first_frame = loop {
- if let Some(result) = frame_queue.lock().await.pop_front() {
+ if let Some(result) = frame_queue.pop() {
debug!("Got first frame for new chunk");
break result;
}
@@ -206,7 +230,7 @@ async fn save_frames_as_video(
}
}
- if let Some(result) = frame_queue.lock().await.pop_front() {
+ if let Some(result) = frame_queue.pop() {
debug!("Processing frame in video.rs"); // {}", frame_count + 1
let sender = Arc::clone(&sender);