This would be great for debugging and general knowledge:
Maybe measure on show only when the custom flag --profile/--duration has been passed.
You could probably write a plugin to do that.
@The-Compiler
Indeed. Wrote that within an hour. At this point just wondering if maybe this could/should or not be part of the core.
I like the idea and would probably use it as plugin. As a start we could get the plugin into the org, so it gets more visibility. AFAIK there is no strategy when if and how plugins can/should be integrated into core. I opened an issue though for getting plugins into the org: https://github.com/tox-dev/tox/issues/445
@The-Compiler @obestwalter here's my naive implementation https://github.com/gaborbernat/tox-durations/blob/master/tox_durations.py
Hi @gaborbernat, thanks. I will check it out as soon as I have some time. Any chance you'll be releasing it on pypi?
yeah, once it gets some review :+1: I'll also polish it a little, I just wanted to get first some feedback on a conceptual level
@obestwalter any ETA on this?
I just set ETA for ... the Future :)
I would suggest we move the plugin into the org, to give it more visibility and finally have our first plugin there, so that people realize that this is poosible.
It's a nice example also for how easy it can be to write a plugin :)
I agree, we should move it under the organization with other similar plugins. This definitely could act as a minimal viable product for a plugin.
Cool - let's do this: https://help.github.com/articles/about-repository-transfers/
I think you have to initiate it and then I have to complete it or something like that. I set you as an owner for that repo again, cause this right gets lost on transfer IIUC.
@gaborbernat ping - I'm keen to move the first plugin into the org 馃嵕
You don鈥檛 have the permission to create repositories on tox-dev
https://help.github.com/articles/transferring-a-repository-owned-by-your-personal-account/#transferring-to-an-organization
I thought that this is going to be interesting - this is why I want to try it out with you first :)
I invited you as a member of the org now
Done :+1: https://github.com/tox-dev/tox-durations
馃嵕 馃嵕 馃嵕
We should leave this open until the docs are updated with info about this (and hopefully other) plugin.
I'll take this and create a plugin page on our docs :+1:
Thanks. As a side note - I think the durations plugin needs a bit more love, before it is ready for prime time. A pypi release for starters.
@obestwalter yeah, it's current state it's really just a POC; the README should also for example detail what states are in tox to give a sense what duration it measures
Will actually do this the next weeks :smile:
tox-durations exists for quite a while now, so I think we can close this.
not released yet, so let's keep it open
Most helpful comment
@gaborbernat ping - I'm keen to move the first plugin into the org 馃嵕