Class WebBuildProcessor
Can be used to add submodule profiling to a build, and perform submodule stripping for a build.
Inherited Members
Namespace: Unity.Web.Stripping.Editor
Assembly: Unity.Web.Stripping.Editor.dll
Syntax
public class WebBuildProcessor
Methods
InstrumentBuild(WebBuildReport)
Adds submodule profiling to a build.
Declaration
public static bool InstrumentBuild(WebBuildReport build)
Parameters
| Type | Name | Description |
|---|---|---|
| WebBuildReport | build | The Web build. |
Returns
| Type | Description |
|---|---|
| bool | Returns 'true' if the build was successfully instrumented, 'false' otherwise. |
Remarks
Shows a progress bar. This option isn't available for stripped builds or builds that are already instrumented for submodule profiling.
RemoveInstrumentationFromBuild(WebBuildReport)
Remove submodule profiling from build. This restores the backup files of the WebAssembly and JavaScript Framework and deletes any additional TemplateData, for example, icons.
Declaration
public static bool RemoveInstrumentationFromBuild(WebBuildReport build)
Parameters
| Type | Name | Description |
|---|---|---|
| WebBuildReport | build | The Web build. |
Returns
| Type | Description |
|---|---|
| bool | Returns 'true' if submodule profiling code was removed, 'false' otherwise. |
StripBuild(WebBuildReport, SubmoduleStrippingSettings)
Perform submodule stripping for a build.
Declaration
public static bool StripBuild(WebBuildReport build, SubmoduleStrippingSettings settings)
Parameters
| Type | Name | Description |
|---|---|---|
| WebBuildReport | build | The Web build. |
| SubmoduleStrippingSettings | settings | The stripping settings to be used. |
Returns
| Type | Description |
|---|---|
| bool | Returns 'true' if submodule stripping was performed, 'false' otherwise. |
Remarks
Before a build is stripped, it is restored to its original state, meaning, existing submodule profiling instrumentation or submodule stripping will be reverted. Shows a progress bar.