using ktexteditor as a base for a disassembly viewer
Milian Wolff
mail at milianw.de
Fri Dec 11 14:46:18 GMT 2020
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 at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20201211/a27ebd12/attachment.sig>
More information about the KWrite-Devel
mailing list