Skip to content

Commit

Permalink
fix: adjust log profile generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromelaban committed May 24, 2023
1 parent c48cd45 commit ee18f51
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/Uno.Wasm.Bootstrap/ts/Uno/WebAssembly/Bootstrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,6 @@ namespace Uno.WebAssembly.Bootstrap {
// Module may not be initialized yet (.NET 8 and later)
(<any>this._context).Module = this._context.Module || {};

this._context.Module.ENVIRONMENT_IS_WEB = Bootstrapper.ENVIRONMENT_IS_WEB;
this._context.Module.ENVIRONMENT_IS_NODE = Bootstrapper.ENVIRONMENT_IS_NODE;

this.setupRequire();
this.setupEmscriptenPreRun();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

private attachHotKey() {

if (this._context.Module.ENVIRONMENT_IS_WEB) {
if (Bootstrapper.ENVIRONMENT_IS_WEB) {

if (LogProfilerSupport._logProfilerEnabled) {
// Use the combination shift+alt+D because it isn't used by the major browsers
Expand Down
2 changes: 0 additions & 2 deletions src/Uno.Wasm.Bootstrap/ts/types/dotnet/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ declare interface EmscriptenModule {
/**
* BEGIN UNO SPECIFIC
*/
ENVIRONMENT_IS_NODE: boolean;
ENVIRONMENT_IS_WEB: boolean;
aotProfileData: any;
/**
* END UNO SPECIFIC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<None Include="$(MSBuildThisFileDirectory)side_module\side.wasm" />
<None Include="$(MSBuildThisFileDirectory)test.cpp" />
</ItemGroup>
<ItemGroup Condition="'$(UseAOT)'=='true' or '$(WasmShellGenerateAOTProfile)'=='true'">
<ItemGroup Condition="'$(UseAOT)'=='true' or '$(WasmShellGenerateAOTProfile)'=='true' or '$(WasmShellEnableLogProfiler)'=='true'">
<Content Include="$(MSBuildThisFileDirectory)native/**/*.bc" />
<WasmShellNativeCompile Include="$(MSBuildThisFileDirectory)test.cpp" />
</ItemGroup>
Expand Down

0 comments on commit ee18f51

Please sign in to comment.