This page contains the steps needed to add additional VMProtect 2 virtual instruction profiles to VMProfiler. Understand that these instructions are for version 1.8 and may be different in later versions.
This page contains the steps needed to add additional VMProtect 2 virtual instruction profiles to VMProfiler. Understand that these instructions are for version 1.8 and may be different in later versions.
@ -35,7 +35,7 @@ vm::handler::profile_t addq = {
Inside of `vmprofiles.hpp` you can see a list of these profiles marked as `extern`.
Inside of `vmprofiles.hpp` you can see a list of these profiles marked as `extern`.
#### Step 2, Declare It Extern Inside `vmprofiles.hpp`
#### Step 2, Declare It Extern Inside vmprofiles.hpp
```cpp
```cpp
namespace profile
namespace profile
@ -65,7 +65,7 @@ namespace profile
Lastly the `addq` variable is added to a vector of `vm::handler::profile_t*`'s.
Lastly the `addq` variable is added to a vector of `vm::handler::profile_t*`'s.
#### Step 3, Add The Variable To `vm::handler::profile::all`
#### Step 3, Add The Variable To vm::handler::profile::all
```cpp
```cpp
inline std::vector<vm::handler::profile_t*> all = {
inline std::vector<vm::handler::profile_t*> all = {
You can see this exact line of code [here](https://githacks.org/vmp2/vmprofiler/-/blob/8baefa1e2148111712d640ee9cb7c0b7ac329521/include/vmlifters.hpp#L22).
You can see this exact line of code [here](https://githacks.org/vmp2/vmprofiler/-/blob/8baefa1e2148111712d640ee9cb7c0b7ac329521/include/vmlifters.hpp#L22).
@ -25,7 +25,7 @@ You can see this exact line of code [here](https://githacks.org/vmp2/vmprofiler/
extern vm::lifters::lifter_t lconstq;
extern vm::lifters::lifter_t lconstq;
```
```
#### Step 3, Add Lifter To `vm::lifters::all`
#### Step 3, Add Lifter To vm::lifters::all
```cpp
```cpp
inline std::vector<vm::lifters::lifter_t*> all = {
inline std::vector<vm::lifters::lifter_t*> all = {