FluidFramework icon indicating copy to clipboard operation
FluidFramework copied to clipboard

AB#17366 Get summary size in code

Open MarioJGMsoft opened this issue 1 year ago • 1 comments

Description

Within the repository find a way to access the size of the summary. This can be before or after compression

Most probably needs to be done in summaryGenerator.ts

Reviewer Guidance

I would like to see if this is the best way to do it. Let me know if you think there is a better process to find the size of the summary.

I created that function based on the fact that it returns the size in bytes of the variable and I decided to add it to the submit case because of different reasons:

  • The summarizing process was successful.
  • It can be uploaded to the telemetry.
  • That is where all of the summary related info is placed.

MarioJGMsoft avatar Sep 27 '24 17:09 MarioJGMsoft

@fluid-example/bundle-size-tests: +757 Bytes
Metric NameBaseline SizeCompare SizeSize Diff
aqueduct.js 461.42 KB 461.58 KB +163 Bytes
azureClient.js 559.03 KB 559.21 KB +177 Bytes
connectionState.js 680 Bytes 680 Bytes No change
containerRuntime.js 261.68 KB 261.82 KB +142 Bytes
fluidFramework.js 401.93 KB 401.95 KB +14 Bytes
loader.js 134.17 KB 134.19 KB +14 Bytes
map.js 42.43 KB 42.44 KB +7 Bytes
matrix.js 146.8 KB 146.8 KB +7 Bytes
odspClient.js 526.18 KB 526.36 KB +177 Bytes
odspDriver.js 97.8 KB 97.82 KB +21 Bytes
odspPrefetchSnapshot.js 42.76 KB 42.78 KB +14 Bytes
sharedString.js 163.79 KB 163.8 KB +7 Bytes
sharedTree.js 392.4 KB 392.4 KB +7 Bytes
Total Size 3.3 MB 3.3 MB +757 Bytes

Baseline commit: 4b6957e3fac5e197e44e66b443737db38565bb01

Generated by :no_entry_sign: dangerJS against 087e947f28b78f5d14fe910e9c0c2436db62a18b

msfluid-bot avatar Sep 27 '24 17:09 msfluid-bot

This PR has been automatically marked as stale because it has had no activity for 60 days. It will be closed if no further activity occurs within 8 days of this comment. Thank you for your contributions to Fluid Framework!