Philipp Hörist pushed to branch master at gajim / gajim
Commits:
dbcd195d by Philipp Hörist at 2023-06-30T23:33:44+02:00
imprv: Sort cprofile output after total time
- - - - -
a79b91b5 by Philipp Hörist at 2023-06-30T23:37:27+02:00
perf: Idle: Raise poll interval
- - - - -
2 changed files:
- gajim/common/application.py
- gajim/common/idle.py
Changes:
=====================================
gajim/common/application.py
=====================================
@@ -211,7 +211,7 @@ def end_profiling(self) -> None:
self._profiling_session.disable()
self._log.info('End profiling')
ps = pstats.Stats(self._profiling_session)
- ps = ps.sort_stats(SortKey.CUMULATIVE)
+ ps = ps.sort_stats(SortKey.TIME)
ps.print_stats()
def start_shutdown(self, *args: Any, **kwargs: Any) -> None:
=====================================
gajim/common/idle.py
=====================================
@@ -283,7 +283,7 @@ def __init__(self):
self._idle_monitor = self._get_idle_monitor()
if self.is_available():
- GLib.timeout_add_seconds(1, self._poll)
+ GLib.timeout_add_seconds(5, self._poll)
def set_interval(self,
away_interval: int = 60,
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/c9b0dfdcef184c281aca640a0154212c526e0504...a79b91b5061262a5e1a84c203621bcd73b59fd70
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/compare/c9b0dfdcef184c281aca640a0154212c526e0504...a79b91b5061262a5e1a84c203621bcd73b59fd70
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]