mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Add a Makefile target for building kitty-profile
This commit is contained in:
3
Makefile
3
Makefile
@@ -22,6 +22,9 @@ debug:
|
|||||||
asan:
|
asan:
|
||||||
python3 setup.py build $(VVAL) --debug --sanitize
|
python3 setup.py build $(VVAL) --debug --sanitize
|
||||||
|
|
||||||
|
profile:
|
||||||
|
python3 setup.py build $(VVAL) --profile
|
||||||
|
|
||||||
logo/kitty.iconset/icon_256x256.png: logo/kitty.svg logo/make.py
|
logo/kitty.iconset/icon_256x256.png: logo/kitty.svg logo/make.py
|
||||||
logo/make.py
|
logo/make.py
|
||||||
|
|
||||||
|
|||||||
@@ -350,8 +350,8 @@ and ``input_delay``. These control the artificial delays introduced into the
|
|||||||
render loop to reduce CPU usage. See the link:kitty/kitty.conf[config file] for details.
|
render loop to reduce CPU usage. See the link:kitty/kitty.conf[config file] for details.
|
||||||
|
|
||||||
You can generate detailed per-function performance data using
|
You can generate detailed per-function performance data using
|
||||||
link:https://github.com/gperftools/gperftools[gperftools]. Build kitty with the
|
link:https://github.com/gperftools/gperftools[gperftools]. Build kitty with
|
||||||
`--profile` flag which will create an executable called `kitty-profile`. Run
|
`make profile` which will create an executable called `kitty-profile`. Run
|
||||||
that and perform the task you want to analyse, for example, scrolling a large
|
that and perform the task you want to analyse, for example, scrolling a large
|
||||||
file with `less`. After you quit, function call statistics will be printed to
|
file with `less`. After you quit, function call statistics will be printed to
|
||||||
`stdout` and you can use tools like *kcachegrind* for more detailed analysis.
|
`stdout` and you can use tools like *kcachegrind* for more detailed analysis.
|
||||||
|
|||||||
Reference in New Issue
Block a user