Closed (fixed)
Project:
Hosting
Version:
7.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Aug 2015 at 00:54 UTC
Updated:
3 Sep 2015 at 15:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ergonlogicThis is a neat addition. I'm not so sure about the "~0" notation though. I think "<1 s." would be more standard. That said, I think it's a bit of a distraction to mark any time on items that were sub-second in duration. So maybe just a "-" would do.
Comment #3
gboudrias commentedI agree that "-" looks cleaner, although the total number of seconds doesn't add up. I was afraid this could be seen as a bug but I don't really have an opinion one way or another.
Comment #4
ergonlogicThese should be Unix timestamps, and so granular to the second. I think if you just change to
if ($exec_time < 1) {, they should add up properly.Comment #5
gboudrias commentedSee updated V2 patch. The seconds don't add up but after some thinking I think everyone will understand negligible time adds up.
The thing is the function call during which the second rolls over is not necessarily 1s long. I think that's the lack of granularity, since so many log entries have the same timestamp.
Comment #6
gboudrias commentedComment #7
gboudrias commentedComment #8
gboudrias commentedHere's a compromise: use the "-" but on <= 1. I think this is the only solution that makes sense since we just can't know if a task takes a second, and it would be inaccurate to highlight certain tasks as taking more time than other based on information we don't have. The seconds don't add up no matter what.
If you agree I think we can just commit this.
Comment #9
ergonlogicI think we should just put down '1s' when the timestamp ticks over. That way the time should add up. It'll basically be that everything with a '-' prior to it (since the last '1s') happened in that same second. We could just document that somewhere, like in a 'title' attribute for the '1s' divs.
Comment #10
gboudrias commentedFourth time's the charm :)
I added the message to 1s entries. I suspect that the reason the total doesn't match the execution time (if you have the execution time patch) is because the exec time is calculated by comparing the time starting from the creation of the node, not the start of the first task.
In any case, the totals in hosting_task_log add up as they're shown here.
Comment #11
ergonlogicLooks, good.
Comment #12
gboudrias commentedPushed to 7.x-3.x. Thanks :)