profile-viewer 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/dist/136.4ad3301b8aacf759ea70.bundle.js +2 -0
  3. data/dist/136.4ad3301b8aacf759ea70.bundle.js.map +1 -0
  4. data/dist/171.621b9df5978342be5662.bundle.js +2 -0
  5. data/dist/171.621b9df5978342be5662.bundle.js.map +1 -0
  6. data/dist/18a5d1d99f1c65c33b71.png +0 -0
  7. data/dist/1ddbc3ce40af8c7a648b.svg +6 -0
  8. data/dist/280.b4210a48e650408000c3.bundle.js +2 -0
  9. data/dist/280.b4210a48e650408000c3.bundle.js.map +1 -0
  10. data/dist/556.2be67a37a0c61fdc2485.bundle.js +2 -0
  11. data/dist/{914.b9bc213d93173ce6b0cb.bundle.js.map → 556.2be67a37a0c61fdc2485.bundle.js.map} +1 -1
  12. data/dist/874.2a087b9b5a296a9c3fcd.bundle.js +2 -0
  13. data/dist/874.2a087b9b5a296a9c3fcd.bundle.js.map +1 -0
  14. data/dist/d6df0017c0241dfe86ff.svg +6 -0
  15. data/dist/docs/_sidebar.md +1 -0
  16. data/dist/docs/advanced-topics.md +1 -0
  17. data/dist/docs/async-posix-signal-control.md +102 -0
  18. data/dist/docs/guide-startup-shutdown.md +7 -7
  19. data/dist/docs/js/init.js +1 -1
  20. data/dist/index.html +1 -1
  21. data/dist/locales/be/app.ftl +21 -3
  22. data/dist/locales/de/app.ftl +109 -3
  23. data/dist/locales/el/app.ftl +110 -4
  24. data/dist/locales/en-CA/app.ftl +1125 -0
  25. data/dist/locales/en-GB/app.ftl +110 -4
  26. data/dist/locales/en-US/app.ftl +123 -6
  27. data/dist/locales/es-CL/app.ftl +110 -4
  28. data/dist/locales/fr/app.ftl +66 -4
  29. data/dist/locales/fur/app.ftl +1093 -0
  30. data/dist/locales/fy-NL/app.ftl +109 -3
  31. data/dist/locales/ia/app.ftl +109 -3
  32. data/dist/locales/it/app.ftl +109 -3
  33. data/dist/locales/kab/app.ftl +32 -2
  34. data/dist/locales/nl/app.ftl +110 -4
  35. data/dist/locales/pt-BR/app.ftl +111 -5
  36. data/dist/locales/ru/app.ftl +109 -3
  37. data/dist/locales/sv-SE/app.ftl +109 -3
  38. data/dist/locales/tr/app.ftl +907 -0
  39. data/dist/locales/uk/app.ftl +110 -4
  40. data/dist/locales/zh-CN/app.ftl +112 -6
  41. data/dist/locales/zh-TW/app.ftl +109 -3
  42. data/dist/main.ac7130d34ce3b872712a.bundle.js +201 -0
  43. data/dist/{main.fc4f388a376c68dab444.bundle.js.LICENSE.txt → main.ac7130d34ce3b872712a.bundle.js.LICENSE.txt} +1 -30
  44. data/dist/main.ac7130d34ce3b872712a.bundle.js.map +1 -0
  45. data/dist/photon/index.html +1 -1
  46. data/dist/photon/main.aafbcdad3fb08c7ae5b4.bundle.js +2 -0
  47. data/dist/photon/main.aafbcdad3fb08c7ae5b4.bundle.js.map +1 -0
  48. data/dist/sw.js +1 -1
  49. data/dist/sw.js.map +1 -1
  50. data/dist/{workbox-27b29e6f.js → workbox-e3490c72.js} +2 -2
  51. data/dist/{workbox-27b29e6f.js.map → workbox-e3490c72.js.map} +1 -1
  52. data/dist/zee-worker.js +1 -1
  53. data/ruby-bin/profile-viewer +20 -12
  54. data/ruby-bin/profile-viewer-version.rb +1 -1
  55. metadata +28 -22
  56. data/dist/119.92ddbd8a86d8c3ca559e.bundle.js +0 -2
  57. data/dist/119.92ddbd8a86d8c3ca559e.bundle.js.map +0 -1
  58. data/dist/131.c21d348572deab4ece66.bundle.js +0 -2
  59. data/dist/131.c21d348572deab4ece66.bundle.js.map +0 -1
  60. data/dist/308.4d236ce7e6451807cb54.bundle.js +0 -2
  61. data/dist/308.4d236ce7e6451807cb54.bundle.js.map +0 -1
  62. data/dist/9.32828795506af73ed4a1.bundle.js +0 -2
  63. data/dist/9.32828795506af73ed4a1.bundle.js.map +0 -1
  64. data/dist/914.b9bc213d93173ce6b0cb.bundle.js +0 -2
  65. data/dist/b45b29da558efa211628.jpg +0 -0
  66. data/dist/main.fc4f388a376c68dab444.bundle.js +0 -199
  67. data/dist/main.fc4f388a376c68dab444.bundle.js.map +0 -1
  68. data/dist/photon/main.1dffe4a955d6a0630bc4.bundle.js +0 -2
  69. data/dist/photon/main.1dffe4a955d6a0630bc4.bundle.js.map +0 -1
  70. /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.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Patterson
8
8
  autorequire:
9
9
  bindir: ruby-bin
10
10
  cert_chain: []
11
- date: 2024-01-16 00:00:00.000000000 Z
11
+ date: 2024-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: webrick
@@ -48,17 +48,20 @@ files:
48
48
  - dist/022efb839d22fa54a716.svg
49
49
  - dist/0c510afd6169a0a83f97.svg
50
50
  - dist/0d5cf282780cd1a5ec64.svg
51
- - dist/119.92ddbd8a86d8c3ca559e.bundle.js
52
- - dist/119.92ddbd8a86d8c3ca559e.bundle.js.map
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
64
67
  - dist/3c3fda7c08bcc9544c64.svg
@@ -69,6 +72,8 @@ files:
69
72
  - dist/4d26f0e38c22eedde178.jpg
70
73
  - dist/4ecb077d8715f89c0f87.svg
71
74
  - dist/524e896f487119a0b832.svg
75
+ - dist/556.2be67a37a0c61fdc2485.bundle.js
76
+ - dist/556.2be67a37a0c61fdc2485.bundle.js.map
72
77
  - dist/58c5415e952fb6dddd6b.png
73
78
  - dist/6bd0589a27236471fdab.svg
74
79
  - dist/6c6b49af3a86dfdd44e6.svg
@@ -84,14 +89,12 @@ files:
84
89
  - dist/7e3ac9afb25cfe809520.svg
85
90
  - dist/81762b0b1aacd3686a6b.svg
86
91
  - dist/86e81402ef76d28ff55f.svg
92
+ - dist/874.2a087b9b5a296a9c3fcd.bundle.js
93
+ - dist/874.2a087b9b5a296a9c3fcd.bundle.js.map
87
94
  - dist/8aae7b979b04407f71a4.svg
88
95
  - dist/8b8b909e42722172d494.svg
89
96
  - dist/8dab2a6ba757bcc6e9a5.svg
90
- - dist/9.32828795506af73ed4a1.bundle.js
91
- - dist/9.32828795506af73ed4a1.bundle.js.map
92
97
  - dist/9103e94f1d34c15d44be.svg
93
- - dist/914.b9bc213d93173ce6b0cb.bundle.js
94
- - dist/914.b9bc213d93173ce6b0cb.bundle.js.map
95
98
  - dist/9a7bd6ec36312a2baa7e.svg
96
99
  - dist/9d858d1a3ab57f8ee2e1.svg
97
100
  - dist/9eb1fab2684d1e1f0e26.svg
@@ -100,20 +103,20 @@ files:
100
103
  - dist/a3196e840709b18a3119.svg
101
104
  - dist/aa867391c311267af5a9.svg
102
105
  - dist/acb8393f3fb9c59b15c9.svg
103
- - dist/ad13da76642d8099fe70.module.wasm
104
- - dist/b45b29da558efa211628.jpg
105
106
  - dist/b5698a02eef37ce29146.svg
106
107
  - 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
@@ -243,10 +246,12 @@ files:
243
246
  - dist/locales/be/app.ftl
244
247
  - dist/locales/de/app.ftl
245
248
  - dist/locales/el/app.ftl
249
+ - dist/locales/en-CA/app.ftl
246
250
  - dist/locales/en-GB/app.ftl
247
251
  - dist/locales/en-US/app.ftl
248
252
  - dist/locales/es-CL/app.ftl
249
253
  - dist/locales/fr/app.ftl
254
+ - dist/locales/fur/app.ftl
250
255
  - dist/locales/fy-NL/app.ftl
251
256
  - dist/locales/ia/app.ftl
252
257
  - dist/locales/it/app.ftl
@@ -255,12 +260,13 @@ files:
255
260
  - dist/locales/pt-BR/app.ftl
256
261
  - dist/locales/ru/app.ftl
257
262
  - dist/locales/sv-SE/app.ftl
263
+ - dist/locales/tr/app.ftl
258
264
  - dist/locales/uk/app.ftl
259
265
  - dist/locales/zh-CN/app.ftl
260
266
  - 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
267
+ - dist/main.ac7130d34ce3b872712a.bundle.js
268
+ - dist/main.ac7130d34ce3b872712a.bundle.js.LICENSE.txt
269
+ - dist/main.ac7130d34ce3b872712a.bundle.js.map
264
270
  - dist/photon/31fe933f3a12be1aa7f3.svg
265
271
  - dist/photon/49da6a2153f62ef73d17.svg
266
272
  - dist/photon/6bd0589a27236471fdab.svg
@@ -272,14 +278,14 @@ files:
272
278
  - dist/photon/aa867391c311267af5a9.svg
273
279
  - dist/photon/f0599659345cf76717cd.svg
274
280
  - dist/photon/index.html
275
- - dist/photon/main.1dffe4a955d6a0630bc4.bundle.js
276
- - dist/photon/main.1dffe4a955d6a0630bc4.bundle.js.map
281
+ - dist/photon/main.aafbcdad3fb08c7ae5b4.bundle.js
282
+ - dist/photon/main.aafbcdad3fb08c7ae5b4.bundle.js.map
277
283
  - dist/robots.txt
278
284
  - dist/service-worker-compat.js
279
285
  - dist/sw.js
280
286
  - dist/sw.js.map
281
- - dist/workbox-27b29e6f.js
282
- - dist/workbox-27b29e6f.js.map
287
+ - dist/workbox-e3490c72.js
288
+ - dist/workbox-e3490c72.js.map
283
289
  - dist/zee-worker.js
284
290
  - ruby-bin/profile-viewer
285
291
  - ruby-bin/profile-viewer-version.rb
@@ -303,7 +309,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
303
309
  - !ruby/object:Gem::Version
304
310
  version: '0'
305
311
  requirements: []
306
- rubygems_version: 3.6.0.dev
312
+ rubygems_version: 3.5.11
307
313
  signing_key:
308
314
  specification_version: 4
309
315
  summary: Ruby Gem that packages the Mozilla Profiler