profile-viewer 0.0.2 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/dist/{f0599659345cf76717cd.svg → 118632062f4755918dac.svg} +1 -1
  3. data/dist/136.4ad3301b8aacf759ea70.bundle.js +2 -0
  4. data/dist/136.4ad3301b8aacf759ea70.bundle.js.map +1 -0
  5. data/dist/171.621b9df5978342be5662.bundle.js +2 -0
  6. data/dist/171.621b9df5978342be5662.bundle.js.map +1 -0
  7. data/dist/18a5d1d99f1c65c33b71.png +0 -0
  8. data/dist/1ddbc3ce40af8c7a648b.svg +6 -0
  9. data/dist/280.b4210a48e650408000c3.bundle.js +2 -0
  10. data/dist/280.b4210a48e650408000c3.bundle.js.map +1 -0
  11. data/dist/{79eaad4fc0c398100809.svg → 3a829bf1fcf02598aa4b.svg} +1 -1
  12. data/dist/556.2be67a37a0c61fdc2485.bundle.js +2 -0
  13. data/dist/{914.b9bc213d93173ce6b0cb.bundle.js.map → 556.2be67a37a0c61fdc2485.bundle.js.map} +1 -1
  14. data/dist/874.ca7a11f56438ad874b9d.bundle.js +2 -0
  15. data/dist/874.ca7a11f56438ad874b9d.bundle.js.map +1 -0
  16. data/dist/8846b19a497771fe0e9d.svg +4 -0
  17. data/dist/d6df0017c0241dfe86ff.svg +6 -0
  18. data/dist/docs/_sidebar.md +1 -0
  19. data/dist/docs/advanced-topics.md +1 -0
  20. data/dist/docs/async-posix-signal-control.md +102 -0
  21. data/dist/docs/guide-startup-shutdown.md +7 -7
  22. data/dist/docs/js/init.js +1 -1
  23. data/dist/docs/memory-allocations.md +28 -6
  24. data/dist/index.html +1 -1
  25. data/dist/locales/be/app.ftl +21 -3
  26. data/dist/locales/de/app.ftl +120 -3
  27. data/dist/locales/el/app.ftl +112 -4
  28. data/dist/locales/en-CA/app.ftl +1131 -0
  29. data/dist/locales/en-GB/app.ftl +121 -4
  30. data/dist/locales/en-US/app.ftl +133 -6
  31. data/dist/locales/es-CL/app.ftl +112 -4
  32. data/dist/locales/fr/app.ftl +112 -4
  33. data/dist/locales/fur/app.ftl +1093 -0
  34. data/dist/locales/fy-NL/app.ftl +120 -3
  35. data/dist/locales/ia/app.ftl +111 -3
  36. data/dist/locales/it/app.ftl +114 -3
  37. data/dist/locales/kab/app.ftl +39 -2
  38. data/dist/locales/nl/app.ftl +121 -4
  39. data/dist/locales/pt-BR/app.ftl +116 -5
  40. data/dist/locales/ru/app.ftl +120 -3
  41. data/dist/locales/sv-SE/app.ftl +111 -3
  42. data/dist/locales/tr/app.ftl +945 -0
  43. data/dist/locales/uk/app.ftl +112 -4
  44. data/dist/locales/zh-CN/app.ftl +117 -6
  45. data/dist/locales/zh-TW/app.ftl +160 -49
  46. data/dist/main.89ba95fadf0fbee4977a.bundle.js +201 -0
  47. data/dist/{main.fc4f388a376c68dab444.bundle.js.LICENSE.txt → main.89ba95fadf0fbee4977a.bundle.js.LICENSE.txt} +1 -30
  48. data/dist/main.89ba95fadf0fbee4977a.bundle.js.map +1 -0
  49. data/dist/photon/{f0599659345cf76717cd.svg → 118632062f4755918dac.svg} +1 -1
  50. data/dist/photon/index.html +1 -1
  51. data/dist/photon/main.fa2aec5d6b214ac1cdb3.bundle.js +2 -0
  52. data/dist/photon/main.fa2aec5d6b214ac1cdb3.bundle.js.map +1 -0
  53. data/dist/sw.js +1 -1
  54. data/dist/sw.js.map +1 -1
  55. data/dist/{workbox-27b29e6f.js → workbox-e3490c72.js} +2 -2
  56. data/dist/{workbox-27b29e6f.js.map → workbox-e3490c72.js.map} +1 -1
  57. data/dist/zee-worker.js +1 -1
  58. data/ruby-bin/profile-viewer +20 -12
  59. data/ruby-bin/profile-viewer-version.rb +1 -1
  60. metadata +32 -29
  61. data/dist/119.92ddbd8a86d8c3ca559e.bundle.js +0 -2
  62. data/dist/119.92ddbd8a86d8c3ca559e.bundle.js.map +0 -1
  63. data/dist/131.c21d348572deab4ece66.bundle.js +0 -2
  64. data/dist/131.c21d348572deab4ece66.bundle.js.map +0 -1
  65. data/dist/308.4d236ce7e6451807cb54.bundle.js +0 -2
  66. data/dist/308.4d236ce7e6451807cb54.bundle.js.map +0 -1
  67. data/dist/9.32828795506af73ed4a1.bundle.js +0 -2
  68. data/dist/9.32828795506af73ed4a1.bundle.js.map +0 -1
  69. data/dist/914.b9bc213d93173ce6b0cb.bundle.js +0 -2
  70. data/dist/b45b29da558efa211628.jpg +0 -0
  71. data/dist/b805360fcc91834556c9.svg +0 -4
  72. data/dist/main.fc4f388a376c68dab444.bundle.js +0 -199
  73. data/dist/main.fc4f388a376c68dab444.bundle.js.map +0 -1
  74. data/dist/photon/main.1dffe4a955d6a0630bc4.bundle.js +0 -2
  75. data/dist/photon/main.1dffe4a955d6a0630bc4.bundle.js.map +0 -1
  76. /data/dist/{ad13da76642d8099fe70.module.wasm → 2f37d1addc2d2f5b699e.module.wasm} +0 -0
@@ -4,13 +4,10 @@ require "webrick"
4
4
  require "json"
5
5
  require "cgi"
6
6
  require "optparse"
7
+ require "socket"
7
8
 
8
9
  HTTP_ROOT = File.expand_path File.join(__dir__, "..", "dist")
9
10
 
10
- # This came from src/app-logic/constants.js
11
- # export const PROFILER_SERVER_ORIGIN = 'http://localhost:5252';
12
- PORT = 5252
13
-
14
11
  class Source < WEBrick::HTTPServlet::AbstractServlet
15
12
  def initialize server, valid_files
16
13
  super(server)
@@ -81,34 +78,45 @@ unless File.exist?(ARGV[0])
81
78
  exit(2)
82
79
  end
83
80
 
84
- server = WEBrick::HTTPServer.new :Port => PORT,
81
+ port = 0
82
+ profile_paths = []
83
+ server = WEBrick::HTTPServer.new :Port => port,
85
84
  :DocumentRoot => HTTP_ROOT,
86
85
  :StartCallback => lambda {
87
- should_get = "http://localhost:#{PORT}/from-url/" + CGI.escape("http://localhost:#{PORT}/profile")
88
- system("open #{should_get}")
86
+ port = server.config[:Port]
87
+ profile_paths.each do |path|
88
+ should_get = "http://localhost:#{port}/from-url/" + CGI.escape("http://localhost:#{port}#{path}")
89
+ system("open #{should_get}")
90
+ end
89
91
  }
90
92
 
91
93
  trap 'INT' do server.shutdown end
92
94
 
93
95
  server.mount "/from-url", GetIndex
94
96
 
95
- profile = ARGV[0]
96
- if profile
97
- valid_files = Set.new
97
+ valid_files = Set.new
98
+
99
+ ARGV.each.with_index do |profile, index|
98
100
  full_path = File.expand_path profile
99
101
  parsed_file = JSON.parse File.read full_path
100
102
  parsed_file["threads"].each do |thread|
101
103
  thread["stringArray"].map! do |str|
102
104
  if str.start_with?("/") && File.exist?(str)
103
105
  valid_files << str
104
- "http://localhost:#{PORT}/source#{str}"
106
+ "http://localhost:#{port}/source#{str}"
105
107
  else
106
108
  str
107
109
  end
108
110
  end
109
111
  end
110
112
 
111
- server.mount "/profile", Profile, full_path, parsed_file
113
+ uri_path = "/profile#{index unless ARGV.size == 1}"
114
+ $stderr.puts "Mounting #{full_path} at #{uri_path}"
115
+ server.mount uri_path, Profile, full_path, parsed_file
116
+ profile_paths << uri_path
117
+ end
118
+
119
+ unless valid_files.empty?
112
120
  server.mount "/source", Source, valid_files
113
121
  end
114
122
 
@@ -1,3 +1,3 @@
1
1
  module ProfileViewer
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: profile-viewer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Patterson
8
- autorequire:
9
8
  bindir: ruby-bin
10
9
  cert_chain: []
11
- date: 2024-01-16 00:00:00.000000000 Z
10
+ date: 2024-12-27 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: webrick
@@ -48,19 +47,24 @@ files:
48
47
  - dist/022efb839d22fa54a716.svg
49
48
  - dist/0c510afd6169a0a83f97.svg
50
49
  - dist/0d5cf282780cd1a5ec64.svg
51
- - dist/119.92ddbd8a86d8c3ca559e.bundle.js
52
- - dist/119.92ddbd8a86d8c3ca559e.bundle.js.map
50
+ - dist/118632062f4755918dac.svg
53
51
  - dist/11c5dca6d97c9e10e5b7.svg
54
- - dist/131.c21d348572deab4ece66.bundle.js
55
- - dist/131.c21d348572deab4ece66.bundle.js.map
52
+ - dist/136.4ad3301b8aacf759ea70.bundle.js
53
+ - dist/136.4ad3301b8aacf759ea70.bundle.js.map
54
+ - dist/171.621b9df5978342be5662.bundle.js
55
+ - dist/171.621b9df5978342be5662.bundle.js.map
56
+ - dist/18a5d1d99f1c65c33b71.png
56
57
  - dist/18e7fdd45099134897d2.svg
58
+ - dist/1ddbc3ce40af8c7a648b.svg
59
+ - dist/280.b4210a48e650408000c3.bundle.js
60
+ - dist/280.b4210a48e650408000c3.bundle.js.map
57
61
  - dist/2d4b477bc424d35a0245.svg
58
62
  - dist/2e43ad991eb141fc017f.svg
59
63
  - dist/2ea5b50b7361e6de561c.svg
60
- - dist/308.4d236ce7e6451807cb54.bundle.js
61
- - dist/308.4d236ce7e6451807cb54.bundle.js.map
64
+ - dist/2f37d1addc2d2f5b699e.module.wasm
62
65
  - dist/31fe933f3a12be1aa7f3.svg
63
66
  - dist/390aa266f451c1005f61.svg
67
+ - dist/3a829bf1fcf02598aa4b.svg
64
68
  - dist/3c3fda7c08bcc9544c64.svg
65
69
  - dist/4260d5db8309a6f83637.svg
66
70
  - dist/4536fd0738f36c3463bc.svg
@@ -69,6 +73,8 @@ files:
69
73
  - dist/4d26f0e38c22eedde178.jpg
70
74
  - dist/4ecb077d8715f89c0f87.svg
71
75
  - dist/524e896f487119a0b832.svg
76
+ - dist/556.2be67a37a0c61fdc2485.bundle.js
77
+ - dist/556.2be67a37a0c61fdc2485.bundle.js.map
72
78
  - dist/58c5415e952fb6dddd6b.png
73
79
  - dist/6bd0589a27236471fdab.svg
74
80
  - dist/6c6b49af3a86dfdd44e6.svg
@@ -79,19 +85,17 @@ files:
79
85
  - dist/76e5b29823c9fd62d90d.svg
80
86
  - dist/7853c71223701f30d495.svg
81
87
  - dist/79856ce399cb305fafb8.svg
82
- - dist/79eaad4fc0c398100809.svg
83
88
  - dist/7c7ac3c7df370340cfd2.svg
84
89
  - dist/7e3ac9afb25cfe809520.svg
85
90
  - dist/81762b0b1aacd3686a6b.svg
86
91
  - dist/86e81402ef76d28ff55f.svg
92
+ - dist/874.ca7a11f56438ad874b9d.bundle.js
93
+ - dist/874.ca7a11f56438ad874b9d.bundle.js.map
94
+ - dist/8846b19a497771fe0e9d.svg
87
95
  - dist/8aae7b979b04407f71a4.svg
88
96
  - dist/8b8b909e42722172d494.svg
89
97
  - dist/8dab2a6ba757bcc6e9a5.svg
90
- - dist/9.32828795506af73ed4a1.bundle.js
91
- - dist/9.32828795506af73ed4a1.bundle.js.map
92
98
  - dist/9103e94f1d34c15d44be.svg
93
- - dist/914.b9bc213d93173ce6b0cb.bundle.js
94
- - dist/914.b9bc213d93173ce6b0cb.bundle.js.map
95
99
  - dist/9a7bd6ec36312a2baa7e.svg
96
100
  - dist/9d858d1a3ab57f8ee2e1.svg
97
101
  - dist/9eb1fab2684d1e1f0e26.svg
@@ -100,20 +104,19 @@ files:
100
104
  - dist/a3196e840709b18a3119.svg
101
105
  - dist/aa867391c311267af5a9.svg
102
106
  - dist/acb8393f3fb9c59b15c9.svg
103
- - dist/ad13da76642d8099fe70.module.wasm
104
- - dist/b45b29da558efa211628.jpg
105
107
  - dist/b5698a02eef37ce29146.svg
106
- - dist/b805360fcc91834556c9.svg
107
108
  - dist/c3432220f657733ed05f.svg
108
109
  - dist/ca2af827049e9039ef9c.svg
109
110
  - dist/contribute.json
110
111
  - dist/d09537c705fb0878eb63.svg
112
+ - dist/d6df0017c0241dfe86ff.svg
111
113
  - dist/d9c199b3e3e469cc5713.svg
112
114
  - dist/da1f21c60c7217745dd8.svg
113
115
  - dist/docs/README.md
114
116
  - dist/docs/_navbar.md
115
117
  - dist/docs/_sidebar.md
116
118
  - dist/docs/advanced-topics.md
119
+ - dist/docs/async-posix-signal-control.md
117
120
  - dist/docs/bunny-2.md
118
121
  - dist/docs/bunny.md
119
122
  - dist/docs/case-studies.md
@@ -233,7 +236,6 @@ files:
233
236
  - dist/docs/videos.md
234
237
  - dist/e4ed50222911c5af9a32.svg
235
238
  - dist/e70722c0fe0ac3d4227b.svg
236
- - dist/f0599659345cf76717cd.svg
237
239
  - dist/f8e25c2ebeb0a0725a9e.svg
238
240
  - dist/favicon.png
239
241
  - dist/fcb532a05dd4b09c2d08.svg
@@ -243,10 +245,12 @@ files:
243
245
  - dist/locales/be/app.ftl
244
246
  - dist/locales/de/app.ftl
245
247
  - dist/locales/el/app.ftl
248
+ - dist/locales/en-CA/app.ftl
246
249
  - dist/locales/en-GB/app.ftl
247
250
  - dist/locales/en-US/app.ftl
248
251
  - dist/locales/es-CL/app.ftl
249
252
  - dist/locales/fr/app.ftl
253
+ - dist/locales/fur/app.ftl
250
254
  - dist/locales/fy-NL/app.ftl
251
255
  - dist/locales/ia/app.ftl
252
256
  - dist/locales/it/app.ftl
@@ -255,12 +259,14 @@ files:
255
259
  - dist/locales/pt-BR/app.ftl
256
260
  - dist/locales/ru/app.ftl
257
261
  - dist/locales/sv-SE/app.ftl
262
+ - dist/locales/tr/app.ftl
258
263
  - dist/locales/uk/app.ftl
259
264
  - dist/locales/zh-CN/app.ftl
260
265
  - dist/locales/zh-TW/app.ftl
261
- - dist/main.fc4f388a376c68dab444.bundle.js
262
- - dist/main.fc4f388a376c68dab444.bundle.js.LICENSE.txt
263
- - dist/main.fc4f388a376c68dab444.bundle.js.map
266
+ - dist/main.89ba95fadf0fbee4977a.bundle.js
267
+ - dist/main.89ba95fadf0fbee4977a.bundle.js.LICENSE.txt
268
+ - dist/main.89ba95fadf0fbee4977a.bundle.js.map
269
+ - dist/photon/118632062f4755918dac.svg
264
270
  - dist/photon/31fe933f3a12be1aa7f3.svg
265
271
  - dist/photon/49da6a2153f62ef73d17.svg
266
272
  - dist/photon/6bd0589a27236471fdab.svg
@@ -270,16 +276,15 @@ files:
270
276
  - dist/photon/8dab2a6ba757bcc6e9a5.svg
271
277
  - dist/photon/9103e94f1d34c15d44be.svg
272
278
  - dist/photon/aa867391c311267af5a9.svg
273
- - dist/photon/f0599659345cf76717cd.svg
274
279
  - dist/photon/index.html
275
- - dist/photon/main.1dffe4a955d6a0630bc4.bundle.js
276
- - dist/photon/main.1dffe4a955d6a0630bc4.bundle.js.map
280
+ - dist/photon/main.fa2aec5d6b214ac1cdb3.bundle.js
281
+ - dist/photon/main.fa2aec5d6b214ac1cdb3.bundle.js.map
277
282
  - dist/robots.txt
278
283
  - dist/service-worker-compat.js
279
284
  - dist/sw.js
280
285
  - dist/sw.js.map
281
- - dist/workbox-27b29e6f.js
282
- - dist/workbox-27b29e6f.js.map
286
+ - dist/workbox-e3490c72.js
287
+ - dist/workbox-e3490c72.js.map
283
288
  - dist/zee-worker.js
284
289
  - ruby-bin/profile-viewer
285
290
  - ruby-bin/profile-viewer-version.rb
@@ -288,7 +293,6 @@ licenses:
288
293
  - MPL-2.0
289
294
  metadata:
290
295
  source_code_uri: https://github.com/tenderlove/profiler/tree/ruby
291
- post_install_message:
292
296
  rdoc_options: []
293
297
  require_paths:
294
298
  - lib
@@ -303,8 +307,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
303
307
  - !ruby/object:Gem::Version
304
308
  version: '0'
305
309
  requirements: []
306
- rubygems_version: 3.6.0.dev
307
- signing_key:
310
+ rubygems_version: 3.6.2
308
311
  specification_version: 4
309
312
  summary: Ruby Gem that packages the Mozilla Profiler
310
313
  test_files: []