Re: [Zim-wiki] profiling zim for performance?

2017-12-31 Thread Stephen LARROQUE
Ah then there are also cpu profilers. Have a look at my project:

https://github.com/lrq3000/python-easy-profile

If you run this against Zim from source, it should profile both cpu and
memory (depending on the switches you use).

Le Dim. 31 Déc. 2017 17:43, Nathaniel Beaver  a
écrit :

> On 12/30/2017 03:40 PM, Stephen LARROQUE wrote:
> > This is most likely a memory sink issue if it becomes more sluggish over
> > time. Valgrind can be used to profile memory and garbage collection, or
> > since zim is a python program you can also use the memory_profiler
> module.
>
> Thanks for the suggestion, but it's the CPU that spikes when I change
> pages, not the memory.
>
> > But note that i never experienced such an issue (but i leave zim open
> > max for 1d,then i don't fear closing since it memorizes cursor position
> > and documents history). Maybe it's the fault of a plugin?
>
> I suppose it's possible that the tray icon plugin is responsible, but I
> don't think it's likely.
>
> > Le Sam. 30 Déc. 2017 05:53, Nathaniel Beaver  > > a écrit :
> >
> > When I first launch Zim, it is quite snappy. However, after it's been
> > running a while, opening even the smallest pages becomes sluggish.
> >
> > What would be a good method of profiling Zim's performance to help
> > understand this behavior?
> >
> > I've tried using `strace', but it just shows Zim is polling a lot,
> and
> > I'm not sure how to interpret the results.
> >
> > I am using Zim 0.65-4 on Debian Stretch and have also verified the
> same
> > slowdown on the latest Github version (0.67, SHA1 is
> > 7a373a788194c36723bd0eed600291e513de9396).
> >
> > I have not enabled any plugins besides the tray icon.
> >
> >
> > Nathaniel Beaver
> >
> > ___
> > Mailing list: https://launchpad.net/~zim-wiki
> > 
> > Post to : zim-wiki@lists.launchpad.net
> > 
> > Unsubscribe : https://launchpad.net/~zim-wiki
> > 
> > More help   : https://help.launchpad.net/ListHelp
> >
>
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] profiling zim for performance?

2017-12-31 Thread Nathaniel Beaver

On 12/30/2017 03:40 PM, Stephen LARROQUE wrote:
This is most likely a memory sink issue if it becomes more sluggish over 
time. Valgrind can be used to profile memory and garbage collection, or 
since zim is a python program you can also use the memory_profiler module.


Thanks for the suggestion, but it's the CPU that spikes when I change 
pages, not the memory.


But note that i never experienced such an issue (but i leave zim open 
max for 1d,then i don't fear closing since it memorizes cursor position 
and documents history). Maybe it's the fault of a plugin?


I suppose it's possible that the tray icon plugin is responsible, but I 
don't think it's likely.


Le Sam. 30 Déc. 2017 05:53, Nathaniel Beaver > a écrit :


When I first launch Zim, it is quite snappy. However, after it's been
running a while, opening even the smallest pages becomes sluggish.

What would be a good method of profiling Zim's performance to help
understand this behavior?

I've tried using `strace', but it just shows Zim is polling a lot, and
I'm not sure how to interpret the results.

I am using Zim 0.65-4 on Debian Stretch and have also verified the same
slowdown on the latest Github version (0.67, SHA1 is
7a373a788194c36723bd0eed600291e513de9396).

I have not enabled any plugins besides the tray icon.


Nathaniel Beaver

___
Mailing list: https://launchpad.net/~zim-wiki

Post to     : zim-wiki@lists.launchpad.net

Unsubscribe : https://launchpad.net/~zim-wiki

More help   : https://help.launchpad.net/ListHelp



___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] profiling zim for performance?

2017-12-30 Thread Stephen LARROQUE
This is most likely a memory sink issue if it becomes more sluggish over
time. Valgrind can be used to profile memory and garbage collection, or
since zim is a python program you can also use the memory_profiler module.

But note that i never experienced such an issue (but i leave zim open max
for 1d,then i don't fear closing since it memorizes cursor position and
documents history). Maybe it's the fault of a plugin?

Le Sam. 30 Déc. 2017 05:53, Nathaniel Beaver  a
écrit :

> When I first launch Zim, it is quite snappy. However, after it's been
> running a while, opening even the smallest pages becomes sluggish.
>
> What would be a good method of profiling Zim's performance to help
> understand this behavior?
>
> I've tried using `strace', but it just shows Zim is polling a lot, and
> I'm not sure how to interpret the results.
>
> I am using Zim 0.65-4 on Debian Stretch and have also verified the same
> slowdown on the latest Github version (0.67, SHA1 is
> 7a373a788194c36723bd0eed600291e513de9396).
>
> I have not enabled any plugins besides the tray icon.
>
>
> Nathaniel Beaver
>
> ___
> Mailing list: https://launchpad.net/~zim-wiki
> Post to : zim-wiki@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help   : https://help.launchpad.net/ListHelp
>
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


[Zim-wiki] profiling zim for performance?

2017-12-29 Thread Nathaniel Beaver
When I first launch Zim, it is quite snappy. However, after it's been 
running a while, opening even the smallest pages becomes sluggish.


What would be a good method of profiling Zim's performance to help 
understand this behavior?


I've tried using `strace', but it just shows Zim is polling a lot, and 
I'm not sure how to interpret the results.


I am using Zim 0.65-4 on Debian Stretch and have also verified the same 
slowdown on the latest Github version (0.67, SHA1 is 
7a373a788194c36723bd0eed600291e513de9396).


I have not enabled any plugins besides the tray icon.


Nathaniel Beaver

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp