[pyar] Tiempo real de ejecución de un threading.Thread

Andres Riancho andres.riancho en gmail.com
Vie Ene 5 15:19:14 ART 2018


Marcos,

On Fri, Jan 5, 2018 at 2:53 PM, Marcos Dione <mdione en grulic.org.ar> wrote:
> On Fri, Jan 05, 2018 at 06:49:38PM +0100, Marcos Dione wrote:
>>     una punta va porái:
>>
>> https://docs.python.org/2.7/library/os.html#os.times
>>
>>     de ahí a:
>>
>> https://hg.python.org/cpython/file/v2.7.13/Modules/posixmodule.c#l6430
>> https://linux.die.net/man/2/times
>>
>>     viendo los see also:
>>
>> https://linux.die.net/man/2/getrusage
>>
>> RUSAGE_THREAD (since Linux 2.6.26)
>>     Return resource usage statistics for the calling thread.
>>
>>     te la dejo picando :)
>
>     ja! https://docs.python.org/2/library/resource.html

Creo que ninguno de esos dos métodos que mencionas tiene la precision
per-thread que estoy buscando.

-- 
Andrés Riancho
Project Leader at w3af - http://w3af.org/
Web Application Attack and Audit Framework
Twitter: @w3af
GPG: 0x93C344F3
------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: rusage.py
Type: text/x-python
Size: 813 bytes
Desc: no disponible
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20180105/e796295b/attachment-0002.py>
------------ próxima parte ------------
A non-text attachment was scrubbed...
Name: times.py
Type: text/x-python
Size: 467 bytes
Desc: no disponible
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20180105/e796295b/attachment-0003.py>


Más información sobre la lista de distribución pyar