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

Commit

Permalink
Remove TigonTokenObserver usage in Loom
Browse files Browse the repository at this point in the history
Summary:
This TigonTokenObserver was added to track TigonPriority changes and cancel events. Original diffs: D10463904 (a73b5d6) and D10403620

- TigonPriority tracking was removed in D34515445 but left NET_CHANGEPRI in a couple places.
- The cancel events can be obtained from TigonError instead.

Since this is the only token observer usage, will remove TigonTokenObserver in TigonSecretary next.

For future reference on how to regenerate Loom types,
```
./libraries/profilo/cpp/generated/generate_sources.sh
```

Reviewed By: mengz0, yukonfb

Differential Revision: D34821591

fbshipit-source-id: a73a934451aaf5ad1b213e25f9f5a6ab094ad791
  • Loading branch information
Hana Jin authored and facebook-github-bot committed Mar 16, 2022
1 parent 89d9c25 commit 0bed230
Show file tree
Hide file tree
Showing 4 changed files with 223 additions and 228 deletions.
1 change: 0 additions & 1 deletion cpp/codegen/config/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
"UI_UPDATE_END",
"NET_ADDED",
"NET_CANCEL",
"NET_CHANGEPRI",
"NET_ERROR",
"NET_END",
"NET_RESPONSE",
Expand Down
3 changes: 1 addition & 2 deletions cpp/generated/EntryType.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated SignedSource<<6ae2e8fe64e0eb182f0fe5b46ecbee9b>>
// @generated SignedSource<<47b507d34af7c299b94129bf5fdda282>>

#include <stdexcept>
#include <profilo/entries/EntryType.h>
Expand All @@ -16,7 +16,6 @@ const char* to_string(EntryType type) {
case EntryType::UI_UPDATE_END: return "UI_UPDATE_END";
case EntryType::NET_ADDED: return "NET_ADDED";
case EntryType::NET_CANCEL: return "NET_CANCEL";
case EntryType::NET_CHANGEPRI: return "NET_CHANGEPRI";
case EntryType::NET_ERROR: return "NET_ERROR";
case EntryType::NET_END: return "NET_END";
case EntryType::NET_RESPONSE: return "NET_RESPONSE";
Expand Down
223 changes: 111 additions & 112 deletions cpp/generated/EntryType.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated SignedSource<<776706c631f555de07373bf9a30ba723>>
// @generated SignedSource<<05d36557ebeeeaae647d8614fa811587>>

#pragma once

Expand All @@ -13,117 +13,116 @@ enum class EntryType {
UI_UPDATE_END = 4,
NET_ADDED = 5,
NET_CANCEL = 6,
NET_CHANGEPRI = 7,
NET_ERROR = 8,
NET_END = 9,
NET_RESPONSE = 10,
NET_RETRY = 11,
NET_START = 12,
NET_COUNTER = 13,
CALL_START = 14,
CALL_END = 15,
ASYNC_CALL = 16,
SERV_CONN = 17,
SERV_DISCONN = 18,
SERV_END = 19,
ADAPTER_NOTIFY = 20,
MARK_FLAG = 21,
MARK_PUSH = 22,
MARK_POP = 23,
LIFECYCLE_APPLICATION_START = 24,
LIFECYCLE_APPLICATION_END = 25,
LIFECYCLE_ACTIVITY_START = 26,
LIFECYCLE_ACTIVITY_END = 27,
LIFECYCLE_SERVICE_START = 28,
LIFECYCLE_SERVICE_END = 29,
LIFECYCLE_BROADCAST_RECEIVER_START = 30,
LIFECYCLE_BROADCAST_RECEIVER_END = 31,
LIFECYCLE_CONTENT_PROVIDER_START = 32,
LIFECYCLE_CONTENT_PROVIDER_END = 33,
LIFECYCLE_FRAGMENT_START = 34,
LIFECYCLE_FRAGMENT_END = 35,
LIFECYCLE_VIEW_START = 36,
LIFECYCLE_VIEW_END = 37,
TRACE_ABORT = 38,
TRACE_END = 39,
TRACE_START = 40,
TRACE_BACKWARDS = 41,
TRACE_TIMEOUT = 42,
TRACE_TRIGGER = 43,
BLACKBOX_TRACE_START = 44,
COUNTER = 45,
STACK_FRAME = 46,
QPL_START = 47,
QPL_END = 48,
QPL_CANCEL = 49,
QPL_NOTE = 50,
QPL_POINT = 51,
QPL_EVENT = 52,
TRACE_ANNOTATION = 53,
WAIT_START = 54,
WAIT_END = 55,
WAIT_SIGNAL = 56,
STRING_KEY = 57,
STRING_VALUE = 58,
QPL_TAG = 59,
QPL_ANNOTATION = 60,
TRACE_THREAD_NAME = 61,
TRACE_PRE_END = 62,
TRACE_THREAD_PRI = 63,
MINOR_FAULT = 64,
MAJOR_FAULT = 65,
PERFEVENTS_LOST = 66,
CLASS_LOAD = 67,
JAVASCRIPT_STACK_FRAME = 68,
MESSAGE_START = 69,
MESSAGE_END = 70,
CLASS_VALUE = 71,
HTTP2_REQUEST_INITIATED = 72,
HTTP2_FRAME_HEADER = 73,
HTTP2_WINDOW_UPDATE = 74,
HTTP2_PRIORITY = 75,
HTTP2_EGRESS_FRAME_HEADER = 76,
PROCESS_LIST = 77,
IO_START = 78,
IO_END = 79,
CPU_COUNTER = 80,
CLASS_LOAD_START = 81,
CLASS_LOAD_END = 82,
CLASS_LOAD_FAILED = 83,
STRING_NAME = 84,
JAVA_FRAME_NAME = 85,
BINDER_START = 86,
BINDER_END = 87,
MEMORY_ALLOCATION = 88,
MEMORY_DEALLOCATION = 89,
STKERR_EMPTYSTACK = 90,
STKERR_STACKOVERFLOW = 91,
STKERR_NOSTACKFORTHREAD = 92,
STKERR_SIGNALINTERRUPT = 93,
STKERR_NESTEDUNWIND = 94,
STKERR_PARTIALSTACK = 95,
STKERR_STACKCOPYFAILED = 96,
STKERR_QUEUEOVERFLOW = 97,
MAPPING = 98,
LOGGER_PRIORITY = 99,
CONDITIONAL_UPLOAD_RATE = 100,
NATIVE_ALLOC = 101,
NATIVE_FREE = 102,
NATIVE_ALLOC_FAILURE = 103,
NATIVE_STACK_FRAME = 104,
NATIVE_FRAME_NAME = 105,
MEMORY_MAPPED = 106,
MEMORY_UNMAPPED = 107,
ION_MEMORY_ALLOC = 108,
ION_MEMORY_FREE = 109,
ION_MEMORY_MAPPED = 110,
GPU_MEMORY_ALLOC = 111,
GPU_MEMORY_FREE = 112,
THREAD_START = 113,
THREAD_FINISH = 114,
CPU_STACK_SAMPLE = 115,
WALL_STACK_SAMPLE = 116,
MEMORY_MAPPING_FAILURE = 117,
NET_ERROR = 7,
NET_END = 8,
NET_RESPONSE = 9,
NET_RETRY = 10,
NET_START = 11,
NET_COUNTER = 12,
CALL_START = 13,
CALL_END = 14,
ASYNC_CALL = 15,
SERV_CONN = 16,
SERV_DISCONN = 17,
SERV_END = 18,
ADAPTER_NOTIFY = 19,
MARK_FLAG = 20,
MARK_PUSH = 21,
MARK_POP = 22,
LIFECYCLE_APPLICATION_START = 23,
LIFECYCLE_APPLICATION_END = 24,
LIFECYCLE_ACTIVITY_START = 25,
LIFECYCLE_ACTIVITY_END = 26,
LIFECYCLE_SERVICE_START = 27,
LIFECYCLE_SERVICE_END = 28,
LIFECYCLE_BROADCAST_RECEIVER_START = 29,
LIFECYCLE_BROADCAST_RECEIVER_END = 30,
LIFECYCLE_CONTENT_PROVIDER_START = 31,
LIFECYCLE_CONTENT_PROVIDER_END = 32,
LIFECYCLE_FRAGMENT_START = 33,
LIFECYCLE_FRAGMENT_END = 34,
LIFECYCLE_VIEW_START = 35,
LIFECYCLE_VIEW_END = 36,
TRACE_ABORT = 37,
TRACE_END = 38,
TRACE_START = 39,
TRACE_BACKWARDS = 40,
TRACE_TIMEOUT = 41,
TRACE_TRIGGER = 42,
BLACKBOX_TRACE_START = 43,
COUNTER = 44,
STACK_FRAME = 45,
QPL_START = 46,
QPL_END = 47,
QPL_CANCEL = 48,
QPL_NOTE = 49,
QPL_POINT = 50,
QPL_EVENT = 51,
TRACE_ANNOTATION = 52,
WAIT_START = 53,
WAIT_END = 54,
WAIT_SIGNAL = 55,
STRING_KEY = 56,
STRING_VALUE = 57,
QPL_TAG = 58,
QPL_ANNOTATION = 59,
TRACE_THREAD_NAME = 60,
TRACE_PRE_END = 61,
TRACE_THREAD_PRI = 62,
MINOR_FAULT = 63,
MAJOR_FAULT = 64,
PERFEVENTS_LOST = 65,
CLASS_LOAD = 66,
JAVASCRIPT_STACK_FRAME = 67,
MESSAGE_START = 68,
MESSAGE_END = 69,
CLASS_VALUE = 70,
HTTP2_REQUEST_INITIATED = 71,
HTTP2_FRAME_HEADER = 72,
HTTP2_WINDOW_UPDATE = 73,
HTTP2_PRIORITY = 74,
HTTP2_EGRESS_FRAME_HEADER = 75,
PROCESS_LIST = 76,
IO_START = 77,
IO_END = 78,
CPU_COUNTER = 79,
CLASS_LOAD_START = 80,
CLASS_LOAD_END = 81,
CLASS_LOAD_FAILED = 82,
STRING_NAME = 83,
JAVA_FRAME_NAME = 84,
BINDER_START = 85,
BINDER_END = 86,
MEMORY_ALLOCATION = 87,
MEMORY_DEALLOCATION = 88,
STKERR_EMPTYSTACK = 89,
STKERR_STACKOVERFLOW = 90,
STKERR_NOSTACKFORTHREAD = 91,
STKERR_SIGNALINTERRUPT = 92,
STKERR_NESTEDUNWIND = 93,
STKERR_PARTIALSTACK = 94,
STKERR_STACKCOPYFAILED = 95,
STKERR_QUEUEOVERFLOW = 96,
MAPPING = 97,
LOGGER_PRIORITY = 98,
CONDITIONAL_UPLOAD_RATE = 99,
NATIVE_ALLOC = 100,
NATIVE_FREE = 101,
NATIVE_ALLOC_FAILURE = 102,
NATIVE_STACK_FRAME = 103,
NATIVE_FRAME_NAME = 104,
MEMORY_MAPPED = 105,
MEMORY_UNMAPPED = 106,
ION_MEMORY_ALLOC = 107,
ION_MEMORY_FREE = 108,
ION_MEMORY_MAPPED = 109,
GPU_MEMORY_ALLOC = 110,
GPU_MEMORY_FREE = 111,
THREAD_START = 112,
THREAD_FINISH = 113,
CPU_STACK_SAMPLE = 114,
WALL_STACK_SAMPLE = 115,
MEMORY_MAPPING_FAILURE = 116,
};


Expand Down
Loading

0 comments on commit 0bed230

Please sign in to comment.