Skip to content
This repository was archived by the owner on May 1, 2023. It is now read-only.

Commit ada6bcd

Browse files
Wesley Elias Ribeirofacebook-github-bot
authored andcommitted
Record mapping failures to trace
Summary: As title Differential Revision: D34732306 fbshipit-source-id: 6083f51b61e99b34200c1ffd7600ee0027750f22
1 parent 4d9f2db commit ada6bcd

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

cpp/codegen/config/android.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@
144144
"THREAD_FINISH",
145145
"CPU_STACK_SAMPLE",
146146
"WALL_STACK_SAMPLE",
147+
"MEMORY_MAPPING_FAILURE",
147148
]
148149

149150
STACK_FRAME_ENTRIES = frozenset(

cpp/generated/EntryType.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @generated SignedSource<<884d58f3557768478d1eb759f0bfc4ba>>
1+
// @generated SignedSource<<6ae2e8fe64e0eb182f0fe5b46ecbee9b>>
22

33
#include <stdexcept>
44
#include <profilo/entries/EntryType.h>
@@ -126,6 +126,7 @@ const char* to_string(EntryType type) {
126126
case EntryType::THREAD_FINISH: return "THREAD_FINISH";
127127
case EntryType::CPU_STACK_SAMPLE: return "CPU_STACK_SAMPLE";
128128
case EntryType::WALL_STACK_SAMPLE: return "WALL_STACK_SAMPLE";
129+
case EntryType::MEMORY_MAPPING_FAILURE: return "MEMORY_MAPPING_FAILURE";
129130
default: throw std::invalid_argument("Unknown entry type");
130131
}
131132
}

cpp/generated/EntryType.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @generated SignedSource<<f47b996e783580997f3b9e84739d7721>>
1+
// @generated SignedSource<<776706c631f555de07373bf9a30ba723>>
22

33
#pragma once
44

@@ -123,6 +123,7 @@ enum class EntryType {
123123
THREAD_FINISH = 114,
124124
CPU_STACK_SAMPLE = 115,
125125
WALL_STACK_SAMPLE = 116,
126+
MEMORY_MAPPING_FAILURE = 117,
126127
};
127128

128129

cpp/generated/EntryType.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// @generated SignedSource<<6e7a15b5b6fc92e87cabe8628bfac979>>
1+
// @generated SignedSource<<1e08008ef69a4e334fa2515fba4f0495>>
22

33
package com.facebook.profilo.entries;
44

@@ -121,6 +121,7 @@ public class EntryType {
121121
public static final int THREAD_FINISH = 114;
122122
public static final int CPU_STACK_SAMPLE = 115;
123123
public static final int WALL_STACK_SAMPLE = 116;
124+
public static final int MEMORY_MAPPING_FAILURE = 117;
124125

125126
public static final String[] NAMES = {
126127
"UNKNOWN_TYPE",
@@ -240,5 +241,6 @@ public class EntryType {
240241
"THREAD_FINISH",
241242
"CPU_STACK_SAMPLE",
242243
"WALL_STACK_SAMPLE",
244+
"MEMORY_MAPPING_FAILURE",
243245
};
244246
}

0 commit comments

Comments
 (0)