logbook: an All code bar (game + engine + platform, by bytes, with function counts) next to the game-code bar, so engine work shows too
This commit is contained in:
1 parent
59dac57bc8
commit
71e6d6cfda
2 files changed
+5
-1
No files matched your search
@@ -292,6 +292,10 @@ class ProgressMap:
|
||||
"commit": commit, "main": main, "updated_at": stats.get("updated_at"),
|
||||
"percent": percent, "logbook_percent": stats.get("game_bytes_decompiled_percent"),
|
||||
"code": code, "data": self._data(facts, rev),
|
||||
# every function in the executable (game, engine, platform, CRT), so engine work shows too
|
||||
"all_code": {"bytes": stats.get("bytes"), "functions": stats.get("functions"),
|
||||
"decompiled_bytes": ((stats.get("by_status") or {}).get("decompiled") or {}).get("bytes"),
|
||||
"decompiled_functions": ((stats.get("by_status") or {}).get("decompiled") or {}).get("functions")},
|
||||
"history": [[p.get("at"), p.get("decompiled"), p.get("commit"), p.get("game_bytes")]
|
||||
for p in history if p.get("decompiled") is not None],
|
||||
"statuses": list(STATUSES),
|
||||
|
||||
+1
-1
@@ -1254,7 +1254,7 @@ function pmHeader(){const d=PM.doc;if(!d)return;const h=d.history,pt=PM.hist!=nu
|
||||
el('pmProject').textContent=d.project;put('pmFresh',pt?'':pmFresh(d.results));
|
||||
if(!pt){el('pmPct').textContent=d.percent.toFixed(2)+'%';
|
||||
put('pmBars',pmBar('Code',kB(c.bytes),pmCodeSegs(c,c.bytes),c.bytes,'game code · '+fmt(c.decompiled_functions)+' of '+fmt(c.functions)+' functions')
|
||||
+(d.data?pmBar('Data',fmt(d.data.addresses)+' addresses',[['pm-named',d.data.named,pc(d.data.named,d.data.addresses)+'% of the data addresses the code touches have a name in globals.csv ('+fmt(d.data.named)+' of '+fmt(d.data.addresses)+')']],d.data.addresses,'globals named'):''));
|
||||
+(d.all_code&&d.all_code.bytes?pmBar('All code',kB(d.all_code.bytes),[['pm-readable',d.all_code.decompiled_bytes||0,pc(d.all_code.decompiled_bytes||0,d.all_code.bytes)+'% of the whole executable decompiled ('+fmt(d.all_code.decompiled_functions||0)+' of '+fmt(d.all_code.functions)+' functions)']],d.all_code.bytes,'game + engine + platform · '+fmt(d.all_code.decompiled_functions||0)+' of '+fmt(d.all_code.functions)+' functions'):'')+(d.data?pmBar('Data',fmt(d.data.addresses)+' addresses',[['pm-named',d.data.named,pc(d.data.named,d.data.addresses)+'% of the data addresses the code touches have a name in globals.csv ('+fmt(d.data.named)+' of '+fmt(d.data.addresses)+')']],d.data.addresses,'globals named'):''));
|
||||
const at=d.commit.at||d.updated_at,moved=d.main.sha&&d.commit.sha&&d.main.sha.slice(0,7)!==String(d.commit.sha).slice(0,7);
|
||||
put('pmCommit','Updated <b title="'+esc(at||'')+'">'+esc(rel(at))+'</b> in commit <b class="mono">'+esc(d.commit.sha||'–')+'</b>'+(moved?' <span class="note">· main has moved on to '+esc(d.main.sha)+'; the statistics follow within minutes</span>':''));
|
||||
el('pmHistNote').textContent=d.percent!==d.logbook_percent&&d.logbook_percent!=null?'The Logbook statistics say '+d.logbook_percent+'%; they are being rebuilt.':''}
|
||||
|
||||
Reference in new issue
Block a user