{ "id": "171770", "key": "TIMOB-26115", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20238", "description": "", "name": "Release 7.5.0", "archived": false, "released": true, "releaseDate": "2018-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-07-11T20:20:50.000+0000", "created": "2018-06-08T14:53:01.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "android", "ios", "windows" ], "versions": [], "issuelinks": [ { "id": "56595", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "outwardIssue": { "id": "112212", "key": "TIMOB-13379", "fields": { "summary": "TiAPI: Add support for console.time and console.timeEnd", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "57079", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "172631", "key": "TIMOB-26572", "fields": { "summary": "TiAPI: Extend global console API to be more Node-compatible", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "updated": "2018-12-19T19:29:03.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "it would be very useful to have the ability to output timing to the log for testing and debugging.\r\n\r\nWe have already added console.time and console.timeEnd. Due to some ambiguities around calling timeEnd multiple times for the same label, they introduced console.timeLog to handle printing intermediate timings without removing the timer/label. We should expand to support this as well.\r\n\r\nhttps://github.com/whatwg/console/pull/138", "attachment": [], "flagged": false, "summary": "TiAPI: Add support for console.timeLog", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 1050, "state": "closed", "name": "2018 Sprint 14 SDK", "startDate": "2018-07-01T18:40:57.193Z", "endDate": "2018-07-15T18:40:00.000Z", "completeDate": "2018-07-16T03:27:08.720Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "438396", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Also note that there's a good number of other apis we may want to consider adding to match web/node compatibility.\r\n\r\nhttps://nodejs.org/api/console.html\r\nhttps://github.com/nodejs/node/blob/master/lib/console.js\r\nhttps://developer.mozilla.org/en-US/docs/Web/API/Console\r\n\r\n\r\nI think the most relevant methods are:\r\n- assert\r\n- count\r\n- countReset\r\n- group\r\n- groupEnd\r\n- table", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2018-06-13T16:57:24.000+0000", "updated": "2018-06-13T16:57:24.000+0000" }, { "id": "438598", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "+1 for group, groupEnd and table!", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-06-21T17:13:05.000+0000", "updated": "2018-06-21T17:13:05.000+0000" }, { "id": "438631", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~cwilliams]/[~hknoechel] Do either of you share concerns of landing this before the spec lands. I'd like to get this in when time permits but I'm hesitant to do so while it's not full part of the spec.\r\n\r\nFor the others, I think the ones you called out make sense to implement. But I would like to maybe wait until TIMOB-26015 lands, then try and align all platforms to use the same code rather than 2 similar JS implementations and 1 Objective-C one, does that makes sense to you, and am I understanding the potential of that feature correctly?", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-06-22T11:03:05.000+0000", "updated": "2018-06-22T11:03:05.000+0000" }, { "id": "439028", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Windows: https://github.com/appcelerator/titanium_mobile_windows/pull/1267\r\nAndroid/iOS: https://github.com/appcelerator/titanium_mobile/pull/10156", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2018-07-06T17:38:43.000+0000", "updated": "2018-07-06T17:38:43.000+0000" }, { "id": "441536", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "*Closing ticket.* Verified improvement on SDK version: {{7.5.0.v20180913035354}} able to log times, log times with additional information and the ability to handle Arrays and Objects using {{console.timelog}}\r\n\r\nTested on Windows, iOS and Android.\r\n\r\n*Test steps*\r\n# Created a new Titanium application\r\n# Added the following code to an application (default application)\r\n{code:java}\r\nconsole.time('mytimer'); // Start timer\r\nconsole.timeLog('mytimer'); // Log time taken so far\r\nconsole.timeLog('mytimer', 'with', 'some', 'extra', 'info'); // Log time taken with extra logging\r\nconsole.timeLog('mytimer', [ 'a', 'b', 'c' ], { objects: true }); // Should handle Arrays and Objects\r\nconsole.timeEnd('mytimer');{code}\r\n# Installed app on to the device/Simulator\r\n# Ran the app\r\n# Able to see the console output timer with the correct information\r\n\r\n*Environment*\r\n{code:java}\r\nAPPC Studio: 5.1.0.201808080937 (ios/Android) 5.1.1.201809051655 (Windows)\r\nAPPC CLI: 7.0.6\r\niphone 6 (12.0)\r\nNexus 5x emulator (API 25)\r\nOperating System Name: Mac OS High Sierra\r\nOperating System Version: 10.13.6\r\nNode.js Version: 8.9.1\r\nXcode 10.0 beta 6\r\n\r\nWindows 10 emulator 10.0.15063.0\r\nName = Microsoft Windows 10 Enterprise\r\nVersion = 10.0.15063\r\nArchitecture = 64bit\r\nCPU Cores = 8\r\nMemory = 15.9GB\r\nNode.js = 8.9.1\r\nAppcelerator CLI = 7.0.6\r\n{code}\r\n", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-09-13T13:35:45.000+0000", "updated": "2018-09-13T13:36:05.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }