Speed up gdb loading
Ralf Habacker
ralf.habacker at freenet.de
Tue Jul 20 13:58:09 BST 2021
Am 20.07.21 um 10:23 schrieb Ralf Habacker via Kde-finance-apps:
> Hi Ebuka,
>
> which can speed up load times.
I'm using the following gdb batch file to measure startup time of
kmymoney under gdb control
1. download portable package from
https://kmymoney.org/snapshots.php#kmymoney5-aq6-master
2. unpack with 7z
3. enter bin dir of unpackaged archibe
3 create gdb command file
$ cat test.gdb
file kmymoney.exe
b main
python import time
python start_time = time.time()
run
python elapsed_time = time.time() - start_time
python print (time.time()-start_time)
4. run gdb with the following commands
$ gdb -q -x test.gdb
Breakpoint 1 at 0x68baf0: file
/home/abuild/rpmbuild/BUILD/kmymoney-5.1.99+git.1f8cd6b4b/kmymoney/main.cpp,
line 62.
[New Thread 11012.0x2234]
[New Thread 11012.0x1f0c]
[New Thread 11012.0x2220]
Thread 1 hit Breakpoint 1, main (argc=1, argv=0x6e79558) at
/home/abuild/rpmbuild/BUILD/kmymoney-5.1.99+git.1f8cd6b4b/kmymoney/main.cpp:62
62
/home/abuild/rpmbuild/BUILD/kmymoney-5.1.99+git.1f8cd6b4b/kmymoney/main.cpp:
No such file or directory.
66.4316589832
(gdb)
The startup time here is about 66 seconds.
Regards
Ralf
More information about the Kde-finance-apps
mailing list