search for: cprofile

Displaying 1 result from an estimated 1 matches for "cprofile".

Did you mean: profile
2013 Oct 17
1
How to profile a samba function
...5+ minutes to complete. Tracing out samba-tool shows that the slowdown is caused by the samba function 'set_nt_acl'. This function takes approx 120ms to run, which when multiplied up by a few thousand files (2,000 in my case) you very quickly end up in minutes. running samba-tool using cProfile ('python2.7 -m cProfile /usr/bin/samba-tool ntacl sysvolreset') gives the following results: http://pastebin.com/98rYXRxe As you can see the only call that takes any 'significant' time is "samba.samba3.smbd.set_nt_acl". Because this function is part of the samba source...