[prev in list] [next in list] [prev in thread] [next in thread]
List: kwrite-devel
Subject: using ktexteditor as a base for a disassembly viewer
From: Milian Wolff <mail () milianw ! de>
Date: 2020-12-11 14:46:18
Message-ID: 53591533.DjNjmu2oIh () milian-workstation
[Download RAW message or body]
Hey all,
I'm wondering what to use for hotspot to show a disassembly view. Basically
this view consists of multiple columns:
- address
- instructions
- costs (cycles, instructions, branch misses, whatever...)
Initially I thought: Let's use a read-only ktexteditor part for this, as it
will get us highlighting and copy'n'paste features for free. But we'd have to
put the costs into ktexteditor annotations then, I guess?
So I'm not so sure whether that's a good fit after all: While we get some
features for free, we lose others, such as reordering of columns and selection
of more.
What would you use to build something like this:
https://docs.wasmtime.dev/assets/perf-annotate-fib.png
Ideally, we would even eventually get the ability to show the source code too,
like here:
https://chrisdietri.ch/img/perf-report-annotate2.png
But I have to say that instead of the mixed view above, I much prefer
godbolt's view: https://danlarkorg.files.wordpress.com/
2020/10/2020-10-04-223128_947x626_scrot.png?w=947
So, any input and suggestions would be welcome on how to tackle this.
PS: How would one even use KSyntaxHighlighting for rendering into a
QAbstractItemView? That also sounds somewhat nasty hmmm
--
Milian Wolff
mail@milianw.de
http://milianw.de
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic