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

Commit

Permalink
Add Loom support for QPL.markEvent
Browse files Browse the repository at this point in the history
Summary: This diffs hooks up the onMarkEvent callback to emit new QPL_EVENT entries in Loom.

Reviewed By: ricardorey10

Differential Revision: D14886313

fbshipit-source-id: 504abc616c8333268b9c8717c81902346962eaf7
  • Loading branch information
Delyan Kratunov authored and facebook-github-bot committed Apr 11, 2019
1 parent 416eb71 commit 1795f15
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 67 deletions.
1 change: 1 addition & 0 deletions cpp/codegen/config/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@
'QPL_CANCEL',
'QPL_NOTE',
'QPL_POINT',
'QPL_EVENT',

'TRACE_ANNOTATION',

Expand Down
3 changes: 2 additions & 1 deletion cpp/generated/EntryType.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated SignedSource<<cad474c206b9c09c3218c8a398974cbc>>
// @generated SignedSource<<a66fb32dfc85a822ddcd9147d7951613>>

#include <stdexcept>
#include <profilo/entries/EntryType.h>
Expand Down Expand Up @@ -71,6 +71,7 @@ const char* to_string(EntryType type) {
case QPL_CANCEL: return "QPL_CANCEL";
case QPL_NOTE: return "QPL_NOTE";
case QPL_POINT: return "QPL_POINT";
case QPL_EVENT: return "QPL_EVENT";
case TRACE_ANNOTATION: return "TRACE_ANNOTATION";
case WAIT_START: return "WAIT_START";
case WAIT_END: return "WAIT_END";
Expand Down
67 changes: 34 additions & 33 deletions cpp/generated/EntryType.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated SignedSource<<7bc67b8b7989fd049dde71db1ea30f59>>
// @generated SignedSource<<bcfdab47ffa11f41cb8c3100fad9dc3a>>

#pragma once

Expand Down Expand Up @@ -68,38 +68,39 @@ enum EntryType {
QPL_CANCEL = 59,
QPL_NOTE = 60,
QPL_POINT = 61,
TRACE_ANNOTATION = 62,
WAIT_START = 63,
WAIT_END = 64,
WAIT_SIGNAL = 65,
STRING_KEY = 66,
STRING_VALUE = 67,
QPL_TAG = 68,
QPL_ANNOTATION = 69,
TRACE_THREAD_NAME = 70,
TRACE_PRE_END = 71,
TRACE_THREAD_PRI = 72,
MAJOR_FAULT = 73,
YARN_LOST_RECORDS = 74,
CLASS_LOAD = 75,
JAVASCRIPT_STACK_FRAME = 76,
MESSAGE_START = 77,
MESSAGE_END = 78,
CLASS_VALUE = 79,
HTTP2_REQUEST_INITIATED = 80,
HTTP2_FRAME_HEADER = 81,
HTTP2_WINDOW_UPDATE = 82,
HTTP2_PRIORITY = 83,
HTTP2_EGRESS_FRAME_HEADER = 84,
PROCESS_LIST = 85,
IO_START = 86,
IO_END = 87,
CPU_COUNTER = 88,
CLASS_LOAD_START = 89,
CLASS_LOAD_END = 90,
CLASS_LOAD_FAILED = 91,
STRING_NAME = 92,
JAVA_FRAME_NAME = 93,
QPL_EVENT = 62,
TRACE_ANNOTATION = 63,
WAIT_START = 64,
WAIT_END = 65,
WAIT_SIGNAL = 66,
STRING_KEY = 67,
STRING_VALUE = 68,
QPL_TAG = 69,
QPL_ANNOTATION = 70,
TRACE_THREAD_NAME = 71,
TRACE_PRE_END = 72,
TRACE_THREAD_PRI = 73,
MAJOR_FAULT = 74,
YARN_LOST_RECORDS = 75,
CLASS_LOAD = 76,
JAVASCRIPT_STACK_FRAME = 77,
MESSAGE_START = 78,
MESSAGE_END = 79,
CLASS_VALUE = 80,
HTTP2_REQUEST_INITIATED = 81,
HTTP2_FRAME_HEADER = 82,
HTTP2_WINDOW_UPDATE = 83,
HTTP2_PRIORITY = 84,
HTTP2_EGRESS_FRAME_HEADER = 85,
PROCESS_LIST = 86,
IO_START = 87,
IO_END = 88,
CPU_COUNTER = 89,
CLASS_LOAD_START = 90,
CLASS_LOAD_END = 91,
CLASS_LOAD_FAILED = 92,
STRING_NAME = 93,
JAVA_FRAME_NAME = 94,
};


Expand Down
68 changes: 35 additions & 33 deletions cpp/generated/EntryType.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// @generated SignedSource<<3aa91c848415dd782836cc932ff83da8>>
// @generated SignedSource<<7c6ac242b70ac79c0de4dce44de8dcd1>>

package com.facebook.profilo.entries;

Expand Down Expand Up @@ -66,38 +66,39 @@ public class EntryType {
public static final int QPL_CANCEL = 59;
public static final int QPL_NOTE = 60;
public static final int QPL_POINT = 61;
public static final int TRACE_ANNOTATION = 62;
public static final int WAIT_START = 63;
public static final int WAIT_END = 64;
public static final int WAIT_SIGNAL = 65;
public static final int STRING_KEY = 66;
public static final int STRING_VALUE = 67;
public static final int QPL_TAG = 68;
public static final int QPL_ANNOTATION = 69;
public static final int TRACE_THREAD_NAME = 70;
public static final int TRACE_PRE_END = 71;
public static final int TRACE_THREAD_PRI = 72;
public static final int MAJOR_FAULT = 73;
public static final int YARN_LOST_RECORDS = 74;
public static final int CLASS_LOAD = 75;
public static final int JAVASCRIPT_STACK_FRAME = 76;
public static final int MESSAGE_START = 77;
public static final int MESSAGE_END = 78;
public static final int CLASS_VALUE = 79;
public static final int HTTP2_REQUEST_INITIATED = 80;
public static final int HTTP2_FRAME_HEADER = 81;
public static final int HTTP2_WINDOW_UPDATE = 82;
public static final int HTTP2_PRIORITY = 83;
public static final int HTTP2_EGRESS_FRAME_HEADER = 84;
public static final int PROCESS_LIST = 85;
public static final int IO_START = 86;
public static final int IO_END = 87;
public static final int CPU_COUNTER = 88;
public static final int CLASS_LOAD_START = 89;
public static final int CLASS_LOAD_END = 90;
public static final int CLASS_LOAD_FAILED = 91;
public static final int STRING_NAME = 92;
public static final int JAVA_FRAME_NAME = 93;
public static final int QPL_EVENT = 62;
public static final int TRACE_ANNOTATION = 63;
public static final int WAIT_START = 64;
public static final int WAIT_END = 65;
public static final int WAIT_SIGNAL = 66;
public static final int STRING_KEY = 67;
public static final int STRING_VALUE = 68;
public static final int QPL_TAG = 69;
public static final int QPL_ANNOTATION = 70;
public static final int TRACE_THREAD_NAME = 71;
public static final int TRACE_PRE_END = 72;
public static final int TRACE_THREAD_PRI = 73;
public static final int MAJOR_FAULT = 74;
public static final int YARN_LOST_RECORDS = 75;
public static final int CLASS_LOAD = 76;
public static final int JAVASCRIPT_STACK_FRAME = 77;
public static final int MESSAGE_START = 78;
public static final int MESSAGE_END = 79;
public static final int CLASS_VALUE = 80;
public static final int HTTP2_REQUEST_INITIATED = 81;
public static final int HTTP2_FRAME_HEADER = 82;
public static final int HTTP2_WINDOW_UPDATE = 83;
public static final int HTTP2_PRIORITY = 84;
public static final int HTTP2_EGRESS_FRAME_HEADER = 85;
public static final int PROCESS_LIST = 86;
public static final int IO_START = 87;
public static final int IO_END = 88;
public static final int CPU_COUNTER = 89;
public static final int CLASS_LOAD_START = 90;
public static final int CLASS_LOAD_END = 91;
public static final int CLASS_LOAD_FAILED = 92;
public static final int STRING_NAME = 93;
public static final int JAVA_FRAME_NAME = 94;

public static final String[] NAMES = {
"UNKNOWN_TYPE",
Expand Down Expand Up @@ -162,6 +163,7 @@ public class EntryType {
"QPL_CANCEL",
"QPL_NOTE",
"QPL_POINT",
"QPL_EVENT",
"TRACE_ANNOTATION",
"WAIT_START",
"WAIT_END",
Expand Down

0 comments on commit 1795f15

Please sign in to comment.