├── .editorconfig ├── .gitattributes ├── .gitignore ├── .jshintrc ├── Gruntfile.js ├── app ├── devtools.html ├── images │ ├── icon-128.png │ ├── icon-16.png │ └── icon-48.png ├── manifest.json ├── scripts │ ├── chromereload.js │ ├── clipboard.js │ ├── panel.js │ └── timelineurl.js └── sidebar.html ├── assets ├── timeline-url-logo-crop128.fw.png ├── timeline-url-logo.fw.png └── timelineurl-promo-shot.fw.png ├── generate-images.sh ├── license ├── package.json └── readme.md /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = tab 5 | end_of_line = lf 6 | charset = utf-8 7 | trim_trailing_whitespace = true 8 | insert_final_newline = true 9 | 10 | [{package.json,*.yml}] 11 | indent_style = space 12 | indent_size = 2 13 | 14 | [*.md] 15 | trim_trailing_whitespace = false 16 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | temp 3 | .tmp 4 | dist 5 | .sass-cache 6 | app/bower_components 7 | test/bower_components 8 | package 9 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "node": true, 3 | "browser": true, 4 | "esnext": true, 5 | "bitwise": true, 6 | "curly": true, 7 | "eqeqeq": true, 8 | "immed": true, 9 | "latedef": true, 10 | "newcap": true, 11 | "noarg": true, 12 | "quotmark": "single", 13 | "regexp": true, 14 | "unused": false, 15 | "strict": true, 16 | "globals" : { 17 | "chrome": true, 18 | "crypto": true 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Gruntfile.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = function (grunt) { 3 | require('load-grunt-tasks')(grunt); 4 | 5 | var config = { 6 | app: 'app', 7 | dist: 'dist' 8 | }; 9 | 10 | grunt.initConfig({ 11 | config: config, 12 | 13 | watch: { 14 | js: { 15 | files: ['<%= config.app %>/scripts/{,*/}*.js'], 16 | tasks: ['jshint'], 17 | options: { 18 | livereload: '<%= connect.options.livereload %>' 19 | } 20 | }, 21 | gruntfile: { 22 | files: ['Gruntfile.js'] 23 | }, 24 | styles: { 25 | files: ['<%= config.app %>/styles/{,*/}*.css'], 26 | tasks: [], 27 | options: { 28 | livereload: '<%= connect.options.livereload %>' 29 | } 30 | }, 31 | livereload: { 32 | options: { 33 | livereload: '<%= connect.options.livereload %>' 34 | }, 35 | files: [ 36 | '<%= config.app %>/*.html', 37 | '<%= config.app %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}', 38 | '<%= config.app %>/manifest.json', 39 | '<%= config.app %>/_locales/{,*/}*.json' 40 | ] 41 | } 42 | }, 43 | 44 | connect: { 45 | options: { 46 | port: 9000, 47 | livereload: 35729, 48 | hostname: 'localhost' 49 | }, 50 | chrome: { 51 | options: { 52 | open: false, 53 | base: [ 54 | '<%= config.app %>' 55 | ] 56 | } 57 | } 58 | }, 59 | 60 | clean: { 61 | chrome: { 62 | }, 63 | dist: { 64 | files: [{ 65 | dot: true, 66 | src: [ 67 | '<%= config.dist %>/*', 68 | '!<%= config.dist %>/.git*' 69 | ] 70 | }] 71 | } 72 | }, 73 | 74 | jshint: { 75 | options: { 76 | jshintrc: '.jshintrc', 77 | reporter: require('jshint-stylish') 78 | }, 79 | all: [ 80 | 'Gruntfile.js', 81 | '<%= config.app %>/scripts/{,*/}*.js', 82 | '!<%= config.app %>/scripts/vendor/*', 83 | 'test/spec/{,*/}*.js' 84 | ] 85 | }, 86 | mocha: { 87 | all: { 88 | options: { 89 | run: true, 90 | urls: ['http://localhost:<%= connect.options.port %>/index.html'] 91 | } 92 | } 93 | }, 94 | 95 | useminPrepare: { 96 | options: { 97 | dest: '<%= config.dist %>' 98 | }, 99 | html: [ 100 | '<%= config.app %>/popup.html', 101 | '<%= config.app %>/options.html' 102 | ] 103 | }, 104 | 105 | usemin: { 106 | options: { 107 | assetsDirs: ['<%= config.dist %>', '<%= config.dist %>/images'] 108 | }, 109 | html: ['<%= config.dist %>/{,*/}*.html'], 110 | css: ['<%= config.dist %>/styles/{,*/}*.css'] 111 | }, 112 | 113 | imagemin: { 114 | dist: { 115 | files: [{ 116 | expand: true, 117 | cwd: '<%= config.app %>/images', 118 | src: '{,*/}*.{gif,jpeg,jpg,png}', 119 | dest: '<%= config.dist %>/images' 120 | }] 121 | } 122 | }, 123 | 124 | svgmin: { 125 | dist: { 126 | files: [{ 127 | expand: true, 128 | cwd: '<%= config.app %>/images', 129 | src: '{,*/}*.svg', 130 | dest: '<%= config.dist %>/images' 131 | }] 132 | } 133 | }, 134 | 135 | htmlmin: { 136 | dist: { 137 | options: { 138 | }, 139 | files: [{ 140 | expand: true, 141 | cwd: '<%= config.app %>', 142 | src: '*.html', 143 | dest: '<%= config.dist %>' 144 | }] 145 | } 146 | }, 147 | 148 | copy: { 149 | dist: { 150 | files: [{ 151 | expand: true, 152 | dot: true, 153 | cwd: '<%= config.app %>', 154 | dest: '<%= config.dist %>', 155 | src: [ 156 | '*.{ico,png,txt}', 157 | 'images/{,*/}*.{webp,gif}', 158 | '{,*/}*.html', 159 | 'styles/{,*/}*.css', 160 | 'styles/fonts/{,*/}*.*', 161 | '_locales/{,*/}*.json', 162 | ] 163 | }] 164 | } 165 | }, 166 | 167 | concurrent: { 168 | chrome: [ 169 | ], 170 | dist: [ 171 | 'imagemin', 172 | 'svgmin' 173 | ], 174 | test: [ 175 | ] 176 | }, 177 | 178 | chromeManifest: { 179 | dist: { 180 | options: { 181 | buildnumber: true, 182 | indentSize: 2, 183 | background: { 184 | target: 'scripts/background.js', 185 | exclude: [ 186 | 'scripts/chromereload.js' 187 | ] 188 | } 189 | }, 190 | src: '<%= config.app %>', 191 | dest: '<%= config.dist %>' 192 | } 193 | }, 194 | 195 | compress: { 196 | dist: { 197 | options: { 198 | archive: function() { 199 | var manifest = grunt.file.readJSON('app/manifest.json'); 200 | return 'package/timeline-url-' + manifest.version + '.zip'; 201 | } 202 | }, 203 | files: [{ 204 | expand: true, 205 | cwd: 'dist/', 206 | src: ['**'], 207 | dest: '' 208 | }] 209 | } 210 | } 211 | }); 212 | 213 | grunt.registerTask('debug', function () { 214 | grunt.task.run([ 215 | 'jshint', 216 | 'concurrent:chrome', 217 | 'connect:chrome', 218 | 'watch' 219 | ]); 220 | }); 221 | 222 | grunt.registerTask('test', [ 223 | 'connect:test', 224 | 'mocha' 225 | ]); 226 | 227 | grunt.registerTask('build', [ 228 | 'clean:dist', 229 | 'chromeManifest:dist', 230 | 'useminPrepare', 231 | 'concurrent:dist', 232 | 'concat', 233 | 'uglify', 234 | 'copy', 235 | 'usemin', 236 | 'compress' 237 | ]); 238 | 239 | grunt.registerTask('default', [ 240 | 'jshint', 241 | 'test', 242 | 'build' 243 | ]); 244 | }; 245 | -------------------------------------------------------------------------------- /app/devtools.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Timeline URL 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /app/images/icon-128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChromeDevTools/timeline-url/51763797d0c484fcc4f47f2552ce2676857329d7/app/images/icon-128.png -------------------------------------------------------------------------------- /app/images/icon-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChromeDevTools/timeline-url/51763797d0c484fcc4f47f2552ce2676857329d7/app/images/icon-16.png -------------------------------------------------------------------------------- /app/images/icon-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChromeDevTools/timeline-url/51763797d0c484fcc4f47f2552ce2676857329d7/app/images/icon-48.png -------------------------------------------------------------------------------- /app/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Timeline URL for DevTools", 3 | "version": "0.0.9", 4 | "manifest_version": 2, 5 | "description": "Easily share a devtools timeline using a simple URL", 6 | "devtools_page": "devtools.html", 7 | "icons": { 8 | "16": "images/icon-16.png", 9 | "128": "images/icon-128.png" 10 | }, 11 | "background": { 12 | "scripts": [ 13 | "scripts/chromereload.js" 14 | ] 15 | }, 16 | "permissions": [ 17 | "clipboardWrite" 18 | ] 19 | } -------------------------------------------------------------------------------- /app/scripts/chromereload.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var LIVERELOAD_HOST = 'localhost:'; 3 | var LIVERELOAD_PORT = 35729; 4 | var connection = new WebSocket('ws://' + LIVERELOAD_HOST + LIVERELOAD_PORT + '/livereload'); 5 | 6 | connection.onerror = function (error) { 7 | console.log('reload connection got error:', error); 8 | }; 9 | 10 | connection.onmessage = function (e) { 11 | if (e.data) { 12 | var data = JSON.parse(e.data); 13 | if (data && data.command === 'reload') { 14 | chrome.runtime.reload(); 15 | } 16 | } 17 | }; 18 | -------------------------------------------------------------------------------- /app/scripts/clipboard.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | class Clipboard { 4 | constructor(opts) { 5 | this.input = opts.elem; 6 | this.textForClipboard = opts.text; 7 | this.callback = opts.callback; 8 | this.doc = this.input.ownerDocument; 9 | 10 | if (!this.doc.queryCommandSupported('copy')) { 11 | this.callback({copied : false}); 12 | } 13 | 14 | this.copyTextToClipboard(); 15 | } 16 | 17 | copyTextToClipboard() { 18 | this.input.value = this.textForClipboard; 19 | this.input.select(); 20 | var successful = this.doc.execCommand('copy'); 21 | console.log('Copying to clipboard', successful ? 'SUCCEEDED' : 'FAILED'); 22 | 23 | this.callback({copied : successful}); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /app/scripts/panel.js: -------------------------------------------------------------------------------- 1 | /*global TimelineUrl*/ 2 | 'use strict'; 3 | 4 | class TimelineUrlPane { 5 | constructor() { 6 | this.paneTitle = 'Generate Timeline URL'; 7 | this.createSidebar(); 8 | } 9 | 10 | createSidebar() { 11 | chrome.devtools.panels.sources.createSidebarPane(this.paneTitle, function (sidebar) { 12 | sidebar.setPage('sidebar.html'); 13 | sidebar.onShown.addListener(this.bindEvents.bind(this)); 14 | }.bind(this)); 15 | } 16 | 17 | bindEvents(win) { 18 | win.generateBtn.addEventListener('click', function () { 19 | new TimelineUrl(win); 20 | }); 21 | } 22 | } 23 | 24 | // kick it off. 25 | var tlpane = new TimelineUrlPane(); 26 | -------------------------------------------------------------------------------- /app/scripts/timelineurl.js: -------------------------------------------------------------------------------- 1 | /*global fetch, Promise, Clipboard*/ 2 | 'use strict'; 3 | 4 | class TimelineUrl { 5 | constructor(win) { 6 | 7 | this.input = win['timeline-url']; 8 | this.result = win.result; 9 | this.generateBtn = win.generateBtn; 10 | this.confirmation = win.confirmation; 11 | this.resultsDiv = win.results; 12 | 13 | this.inputUrl = undefined; 14 | this.outputUrl = undefined; 15 | 16 | this.isUrlCORS = false; 17 | this.revs = {}; 18 | 19 | this.generateUrl(); 20 | } 21 | 22 | getRevs() { 23 | var chromeVersion = navigator.appVersion.replace(/.+Chrome\/(.+) .+/, '$1'); 24 | var url = 'https://omahaproxy.appspot.com/revision.json?version=' + chromeVersion; 25 | 26 | return fetch(url).then(function (payload) { 27 | return payload.json(); 28 | }).then(function (revs) { 29 | this.revs = revs; 30 | }.bind(this)); 31 | } 32 | 33 | getUrl(url) { 34 | var commit = this.revs.chromium_base_commit; 35 | 36 | return [ 37 | this.isUrlCORS ? 'https://frontend.chrome-dev.tools/serve_rev/@' : 38 | 'chrome-devtools://devtools/remote/serve_rev/@', 39 | 40 | commit, // e.g. 198714 41 | 42 | // Previously to revision 332419 (m45) `devtools.html` was used: codereview.chromium.org/1144393004/ 43 | '/inspector.html', 44 | 45 | '?loadTimelineFromURL=', url 46 | ].join(''); 47 | } 48 | 49 | checkForCORS() { 50 | 51 | // if the URL is CORS-y we can do a clickable URL 52 | return window.fetch(this.inputUrl, { 53 | mode: 'cors', 54 | method: 'HEAD' 55 | }).then(function (resp) { 56 | this.isUrlCORS = true; 57 | }.bind(this)) 58 | .catch(function (err) { 59 | return 'chill'; // this.isUrlCORS remains false 60 | }); 61 | } 62 | 63 | normalizeInputUrl(url) { 64 | // hack to get CORS for all dropbox links www.dropboxforum.com/hc/communities/public/questions/202364979-CORS-issue-when-trying-to-download-shared-file?page=1#answer-201025649 65 | return url.replace('https://www.dropbox.com/s/', 'https://dl.dropboxusercontent.com/s/'); 66 | } 67 | 68 | generateUrl() { 69 | 70 | this.generateBtn.textContent = '🔄'; 71 | this.resultsDiv.hidden = true; 72 | 73 | this.inputUrl = this.normalizeInputUrl(this.input.value); 74 | 75 | this.checkForCORS() 76 | .then(this.getRevs.bind(this)) 77 | .then(function() { 78 | this.outputUrl = this.getUrl(this.inputUrl); 79 | 80 | new Clipboard({ 81 | elem : this.result, 82 | text : this.outputUrl, 83 | callback : this.success.bind(this) 84 | }); 85 | }.bind(this)); 86 | } 87 | 88 | success(opts) { 89 | if (!opts.copied) { 90 | this.confirmation.hidden = true; 91 | } 92 | 93 | this.generateBtn.textContent = 'Generate'; 94 | this.result.value = this.outputUrl; 95 | this.resultsDiv.hidden = false; 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /app/sidebar.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 |

Right-click in the Timeline panel, Save Timeline Data, then upload the JSON to a publically available URL.

64 | 65 |
66 | 67 | 68 |
69 | 70 | 74 | 75 |
76 | Demo traces 77 |
    78 |
  1. 79 |
  2. 80 |
  3. 81 |
82 |
83 | -------------------------------------------------------------------------------- /assets/timeline-url-logo-crop128.fw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChromeDevTools/timeline-url/51763797d0c484fcc4f47f2552ce2676857329d7/assets/timeline-url-logo-crop128.fw.png -------------------------------------------------------------------------------- /assets/timeline-url-logo.fw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChromeDevTools/timeline-url/51763797d0c484fcc4f47f2552ce2676857329d7/assets/timeline-url-logo.fw.png -------------------------------------------------------------------------------- /assets/timelineurl-promo-shot.fw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ChromeDevTools/timeline-url/51763797d0c484fcc4f47f2552ce2676857329d7/assets/timelineurl-promo-shot.fw.png -------------------------------------------------------------------------------- /generate-images.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | opts="-colorspace RGB +sigmoidal-contrast 11.6933 -define filter:filter=Sinc -define filter:window=Jinc -define filter:lobes=3 -sigmoidal-contrast 11.6933 -colorspace sRGB -background transparent -gravity center" 4 | 5 | # 128 6 | 7 | convert assets/timeline-url-logo-crop128.fw.png $opts -resize 128x128 app/images/icon-128.png 8 | # 48 9 | convert assets/timeline-url-logo-crop128.fw.png $opts -resize 48x48 app/images/icon-48.png 10 | 11 | # 16 12 | # crop to the colored bars first, then scale to 16x16 13 | convert assets/timeline-url-logo-crop128.fw.png -crop 42x42+68+73\! logo-crop.png 14 | convert logo-crop.png $opts -resize 16x16 app/images/icon-16.png 15 | rm logo-crop.png 16 | -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 2014 Arthur Verschaeve 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | 203 | All code in any directories or sub-directories that end with *.html or 204 | *.css is licensed under the Creative Commons Attribution International 205 | 4.0 License, which full text can be found here: 206 | https://creativecommons.org/licenses/by/4.0/legalcode. 207 | 208 | As an exception to this license, all html or css that is generated by 209 | the software at the direction of the user is copyright the user. The 210 | user has full ownership and control over such content, including 211 | whether and how they wish to license it. 212 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "devDependencies": { 4 | "grunt": "~0.4.1", 5 | "grunt-contrib-copy": "~0.5.0", 6 | "grunt-contrib-concat": "~0.3.0", 7 | "grunt-contrib-uglify": "~0.4.0", 8 | "grunt-contrib-jshint": "~0.9.2", 9 | "grunt-contrib-cssmin": "~0.9.0", 10 | "grunt-contrib-connect": "~0.7.1", 11 | "grunt-contrib-clean": "~0.5.0", 12 | "grunt-contrib-htmlmin": "~0.2.0", 13 | "grunt-contrib-imagemin": "~0.7.1", 14 | "grunt-contrib-watch": "~0.6.1", 15 | "grunt-usemin": "~2.1.0", 16 | "grunt-mocha": "~0.4.10", 17 | "grunt-svgmin": "~0.4.0", 18 | "grunt-concurrent": "~0.5.0", 19 | "load-grunt-tasks": "~0.4.0", 20 | "jshint-stylish": "~0.1.5", 21 | "grunt-chrome-manifest": "~0.2.0", 22 | "grunt-contrib-compress": "~0.9.1" 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # DevTools Timeline URL extension 2 | 3 | Socialising the profiling experience by making it a little easier to share timelines. This Chrome DevTools extension helps you generate a URL to share your timeline. 4 | 5 | 6 | ![](http://i.imgur.com/otBJWYZ.jpg) 7 | 8 | ## Demo 9 | 10 | Here's a URL the tool generated. Go ahead and click it. 11 | ``` 12 | https://frontend.chrome-dev.tools/serve_rev/@0ca1f564f9660554511191fbd38bec101ca6f08d/inspector.html?loadTimelineFromURL=https://dl.dropboxusercontent.com/u/39519/temp/kenneth-io-Timeline.json 13 | ``` 14 | 15 | ## Install 16 | 17 | https://chrome.google.com/webstore/detail/timeline-url-for-devtools/oclhnibplhejninpifaddfoodnmpcpok 18 | 19 | ## Usage 20 | 21 | * Record a timeline which you'd like to share 22 | * Right click > save timeline as 23 | * You upload it somewhere (dropbox, drive, ...) 24 | * Open the sources panel of Chrome Devtools. 25 | * Open the "Timeline URL" plane 26 | * Drop the (publicely accessable) URL to your timeline in the text area 27 | * Copy the big url it returns 28 | * You can send it around to your team, attach it to a bug report, ... 29 | * Everybody using chrome can access your timeline using that URL. 30 | 31 | 32 | ## Development 33 | 34 | Clone the repo (or your fork), run `npm install`, `grunt debug` and install `app/` in `chrome://extensions/` (`load unpacked extension`). 35 | 36 | 37 | ## License 38 | 39 | Apache 2.0 40 | Copyright 2015 [Arthur Verschaeve](http://arthurverschaeve.be) 41 | 42 | 43 | --------------------------------------------------------------------------------