Skip to content

Commit 5196ecd

Browse files
authored
Merge branch 'main' into dynamic-jszip-import
2 parents e89af45 + db6e248 commit 5196ecd

38 files changed

+401
-154
lines changed

.vscode/settings.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ export default [
1717
ignores: [
1818
'src/profile-logic/import/proto/**',
1919
'src/types/libdef/npm/**',
20+
'res/**',
21+
'dist/**',
2022
'docs-user/**',
2123
'coverage/**',
2224
],

locales/de/app.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ ServiceWorkerManager--hide-notice-button =
710710
StackSettings--implementation-all-frames = Alle Frames
711711
.title = Die Stack-Frames nicht filtern
712712
StackSettings--implementation-script = Skript
713-
.title = Nur die Stapelrahmen anzeigen, die mit der Skriptausführung zusammenhängen.
713+
.title = Nur Stack-Frames anzeigen, die mit Skriptausführung zusammenhängen.
714714
StackSettings--implementation-native2 = Native
715715
.title = Nur die Stack-Frames für nativen Quelltext anzeigen
716716
# This label is displayed in the marker chart and marker table panels only.

locales/tr/app.ftl

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,22 @@ CallTreeSidebar--traced-running-time =
131131
.label = İzlenen çalışma süresi
132132
CallTreeSidebar--running-time =
133133
.label = Çalışma süresi
134+
CallTreeSidebar--self-time =
135+
.label = Kendi süresi
134136
CallTreeSidebar--running-samples =
135137
.label = Çalışan örnekler
138+
CallTreeSidebar--self-samples =
139+
.label = Kendi örnekleri
136140
CallTreeSidebar--running-size =
137141
.label = Çalışma boyutu
142+
CallTreeSidebar--self-size =
143+
.label = Kendi boyutu
138144
CallTreeSidebar--categories = Kategoriler
139145
CallTreeSidebar--implementation = Yürütme
146+
CallTreeSidebar--running-milliseconds = Çalışma milisaniyesi
147+
CallTreeSidebar--self-milliseconds = Kendi milisaniyesi
148+
CallTreeSidebar--self-sample-count = Kendi örnek sayısı
149+
CallTreeSidebar--self-bytes = Kendi baytı
140150
141151
## CompareHome
142152
## This is used in the page to compare two profiles.
@@ -152,6 +162,15 @@ CompareHome--form-label-profile2 = Profil 2:
152162
CompareHome--submit-button =
153163
.value = Profilleri getir
154164
165+
## DebugWarning
166+
## This is displayed at the top of the analysis page when the loaded profile is
167+
## a debug build of Firefox.
168+
169+
DebugWarning--warning-message =
170+
.message =
171+
Bu profil, sürüm optimizasyonları yapılmamış bir derlemede kaydedildi.
172+
Performans gözlemleri sürüm popülasyonu için geçerli olmayabilir.
173+
155174
## Details
156175
## This is the bottom panel in the analysis UI. They are generic strings to be
157176
## used at the bottom part of the UI.
@@ -205,6 +224,10 @@ Home--load-from-url-submit-button =
205224
.value = Yükle
206225
Home--documentation-button = Dokümantasyon
207226
Home--menu-button = { -profiler-brand-name } menü düğmesini etkinleştir
227+
Home--menu-button-instructions = Performans kaydetmeye başlamak için { -firefox-brand-name }’ta profilleyici menü düğmesini etkinleştirin, ardından profili analiz edin ve profiler.firefox.com ile paylaşın.
228+
Home--profile-firefox-android-instructions =
229+
{ -firefox-android-brand-name }’ta da profilleme yapabilirsiniz. Daha fazla bilgi almak için lütfen bu belgeye bakın:
230+
<a>Doğrudan cihaz üzerinde { -firefox-android-brand-name } profilleme</a>.
208231
# The word WebChannel should not be translated.
209232
# This message can be seen on https://main--perf-html.netlify.app/ in the tooltip
210233
# of the "Enable Firefox Profiler menu button" button.
@@ -221,6 +244,11 @@ Home--additional-content-content = Profil dosyasını buraya <strong>sürükleyi
221244
Home--compare-recordings-info = Ayrıca kayıtları karşılaştırabilirsiniz. <a>Karşılaştırma arayüzünü aç.</a>
222245
Home--your-recent-uploaded-recordings-title = Son yüklediğiniz kayıtlar
223246
Home--install-chrome-extension = Chrome uzantısını yükle
247+
Home--chrome-extension-instructions = Chrome’daki performans profillerini kaydedip { -profiler-brand-name }’da analiz etmek için <a>Chrome { -profiler-brand-name } uzantısını</a> kullanabilirsiniz. Uzantıyı Chrome Web Store'dan yükleyebilirsiniz.
248+
Home--chrome-extension-recording-instructions =
249+
Uzantıyı yükledikten sonra profillemeyi başlatmak ve durdurmak için uzantının
250+
araç çubuğu simgesini veya kısayolları kullanabilirsiniz. İsterseniz
251+
profilleri dışa aktarabilir ve ayrıntılı analiz için buraya yükleyebilirsiniz.
224252
225253
## IdleSearchField
226254
## The component that is used for all the search inputs in the application.
@@ -327,6 +355,8 @@ MenuButtons--index--profile-info-uploaded-label = Yüklenme tarihi:
327355
MenuButtons--index--profile-info-uploaded-actions = Sil
328356
MenuButtons--index--metaInfo-subtitle = Profil Bilgileri
329357
MenuButtons--metaInfo--symbols = Semboller:
358+
MenuButtons--metaInfo--profile-symbolicated = Profil sembolleştirilmiştir
359+
MenuButtons--metaInfo--symbolicate-profile = Profili sembolleştir
330360
MenuButtons--metaInfo--cpu-model = İşlemci modeli:
331361
MenuButtons--metaInfo--cpu-cores = İşlemci çekirdekleri:
332362
MenuButtons--metaInfo--main-memory = Ana bellek:
@@ -424,10 +454,14 @@ MenuButtons--metaOverheadStatistics-max = Maksimum
424454
MenuButtons--metaOverheadStatistics-min = Minimum
425455
MenuButtons--metaOverheadStatistics-statkeys-overhead = Ek yük
426456
.title = Tüm iş parçacıklarını örnekleme süresi.
457+
MenuButtons--metaOverheadStatistics-statkeys-cleaning = Temizleme
458+
.title = Süresi geçmiş verileri temizleme süresi.
427459
MenuButtons--metaOverheadStatistics-statkeys-counter = Sayaç
428460
.title = Tüm sayaçları toplama süresi.
429461
MenuButtons--metaOverheadStatistics-statkeys-interval = Aralık
430462
.title = İki örnek arasındaki gözlenen aralık.
463+
MenuButtons--metaOverheadStatistics-statkeys-lockings = Kilitlemeler
464+
.title = Örneklemeden önce kilidi elde etme süresi.
431465
MenuButtons--metaOverheadStatistics-overhead-duration = Ek yük süreleri:
432466
MenuButtons--metaOverheadStatistics-overhead-percentage = Ek yük yüzdesi:
433467
MenuButtons--metaOverheadStatistics-profiled-duration = Profillenen süre:
@@ -581,6 +615,10 @@ ServiceWorkerManager--hide-notice-button =
581615

582616
StackSettings--implementation-all-frames = Tüm çerçeveler
583617
.title = Yığın çerçevelerini filtreleme
618+
StackSettings--implementation-script = Betik
619+
.title = Yalnızca script çalışmasına ilişkin yığın çerçevelerini göster
620+
StackSettings--implementation-native2 = Yerel
621+
.title = Yalnızca yerel kod için yığın çerçevelerini göster
584622
# This label is displayed in the marker chart and marker table panels only.
585623
StackSettings--stack-implementation-label = Yığın filtresi:
586624
StackSettings--use-data-source-label = Veri kaynağı:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"build-symbolicator-cli:quiet": "yarn build:clean && cross-env NODE_ENV=production webpack --config src/symbolicator-cli/webpack.config.js",
2424
"lint": "node bin/output-fixing-commands.js run-p lint-js lint-css prettier-run",
2525
"lint-fix": "run-p lint-fix-js lint-fix-css prettier-fix",
26-
"lint-js": "node bin/output-fixing-commands.js eslint *.js bin src --report-unused-disable-directives --cache --cache-strategy content",
26+
"lint-js": "node bin/output-fixing-commands.js eslint . --report-unused-disable-directives --cache --cache-strategy content",
2727
"lint-fix-js": "yarn lint-js --fix",
2828
"lint-css": "node bin/output-fixing-commands.js stylelint \"src/**/*.css\" \"res/**/*.css\"",
2929
"lint-fix-css": "yarn lint-css --fix",

res/gz-worker.js

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/* This Source Code Form is subject to the terms of the Mozilla Public
2+
* License, v. 2.0. If a copy of the MPL was not distributed with this
3+
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4+
5+
async function readableStreamToBuffer(stream) {
6+
const reader = stream.getReader();
7+
const chunks = [];
8+
9+
try {
10+
while (true) {
11+
const { done, value } = await reader.read();
12+
if (done) break;
13+
if (value) {
14+
chunks.push(value);
15+
}
16+
}
17+
} finally {
18+
reader.releaseLock();
19+
}
20+
21+
// Calculate total length and combine chunks
22+
const totalLength = chunks.reduce((sum, chunk) => sum + chunk.length, 0);
23+
const result = new Uint8Array(totalLength);
24+
let offset = 0;
25+
for (const chunk of chunks) {
26+
result.set(chunk, offset);
27+
offset += chunk.length;
28+
}
29+
30+
return result;
31+
}
32+
33+
onmessage = async (e) => {
34+
let data = e.data;
35+
if (data.kind === 'compress') {
36+
// Create a gzip compression stream
37+
const compressionStream = new CompressionStream('gzip');
38+
39+
// Write the data to the compression stream
40+
const writer = compressionStream.writable.getWriter();
41+
writer.write(data.arrayData);
42+
writer.close();
43+
44+
// Read the compressed data back into a buffer
45+
let result = await readableStreamToBuffer(compressionStream.readable);
46+
postMessage(result, [result.buffer]);
47+
} else if (data.kind === 'decompress') {
48+
// Create a gzip compression stream
49+
const decompressionStream = new DecompressionStream('gzip');
50+
51+
// Write the data to the compression stream
52+
const writer = decompressionStream.writable.getWriter();
53+
writer.write(data.arrayData);
54+
writer.close();
55+
56+
// Read the compressed data back into a buffer
57+
let result = await readableStreamToBuffer(decompressionStream.readable);
58+
postMessage(result, [result.buffer]);
59+
} else {
60+
throw new Error('unknown message');
61+
}
62+
};

src/actions/receive-profile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ async function _extractZipFromResponse(
10661066
async function _extractJsonFromArrayBuffer(
10671067
arrayBuffer: ArrayBuffer
10681068
): Promise<unknown> {
1069-
let profileBytes: Uint8Array<ArrayBufferLike> = new Uint8Array(arrayBuffer);
1069+
let profileBytes = new Uint8Array(arrayBuffer);
10701070
// Check for the gzip magic number in the header.
10711071
if (isGzip(profileBytes)) {
10721072
profileBytes = await decompress(profileBytes);

src/components/app/BottomBox.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@
7272
}
7373

7474
.bottom-close-button {
75-
background-image: url(firefox-profiler-res/img/svg/close-dark.svg);
75+
background-image: url(../../../res/img/svg/close-dark.svg);
7676
}
7777

7878
.bottom-assembly-button {
79-
background-image: url(firefox-profiler-res/img/svg/asm-icon.svg);
79+
background-image: url(../../../res/img/svg/asm-icon.svg);
8080
}
8181

8282
.codeLoadingOverlay,
@@ -111,8 +111,8 @@
111111
width: 32px;
112112
height: 32px;
113113
flex-shrink: 0;
114-
background: url(firefox-profiler-res/img/spinner.png) center center / 32px
115-
32px no-repeat;
114+
background: url(../../../res/img/spinner.png) center center / 32px 32px
115+
no-repeat;
116116
content: '';
117117
}
118118

@@ -123,8 +123,8 @@
123123
width: 50px;
124124
height: 50px;
125125
flex-shrink: 0;
126-
background: url(firefox-profiler-res/img/svg/error.svg) center center / 32px
127-
32px no-repeat;
126+
background: url(../../../res/img/svg/error.svg) center center / 32px 32px
127+
no-repeat;
128128
content: '';
129129
filter: brightness(70%) drop-shadow(0 1px rgb(255 255 255 / 0.5));
130130
}

src/components/app/Details.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
}
2727

2828
.sidebar-open-close-button-isopen {
29-
background-image: url(firefox-profiler-res/img/svg/pane-collapse.svg);
29+
background-image: url(../../../res/img/svg/pane-collapse.svg);
3030
}
3131

3232
.sidebar-open-close-button-isclosed {
33-
background-image: url(firefox-profiler-res/img/svg/pane-expand.svg);
33+
background-image: url(../../../res/img/svg/pane-expand.svg);
3434
}

src/components/app/Home.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
width: 20px;
146146
height: 20px;
147147
margin: 0 10px -4px 3px;
148-
background: url(firefox-profiler-res/img/svg/help-blue.svg);
148+
background: url(../../../res/img/svg/help-blue.svg);
149149
background-size: 100% 100%;
150150
}
151151

0 commit comments

Comments
 (0)