mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-02-06 06:55:07 +00:00
![GanJingSaiyan](/assets/img/avatar_default.png)
Add aot binary analysis tool aot-analyzer, samples: ```bash # parse example.aot, and print basic information about AoT file $ ./aot-analyzer -i example.aot # parse example.aot, and print the size of text section of the AoT file $ ./aot-analyzer -t example.aot # compare these two files, and show the difference in function size between them $ ./aot-analyzer -c example.aot example.wasm ``` Signed-off-by: ganjing <ganjing@xiaomi.com>
23 lines
361 B
C++
23 lines
361 B
C++
/*
|
|
* Copyright (C) 2024 Xiaomi Corporation. All rights reserved.
|
|
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
*/
|
|
|
|
#ifndef WASM_FILE_H_
|
|
#define WASM_FILE_H_
|
|
|
|
#include "binary_file.h"
|
|
|
|
namespace analyzer {
|
|
|
|
class WasmFile : public BinaryFile
|
|
{
|
|
public:
|
|
WasmFile(const char *file_name);
|
|
|
|
Result Scan();
|
|
};
|
|
|
|
} // namespace analyzer
|
|
#endif
|