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

Commit

Permalink
Adding points support for profilo
Browse files Browse the repository at this point in the history
Summary: Adding qpl points reporting to profilo

Reviewed By: BurntBrunch

Differential Revision: D7219193

fbshipit-source-id: 8ef0a9ffd8302138e13e4dd62faa693ac5f1c30e
  • Loading branch information
dmitry-voronkevich authored and facebook-github-bot committed Mar 12, 2018
1 parent c096a71 commit 5d8eb8e
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 57 deletions.
1 change: 1 addition & 0 deletions cpp/codegen/config/android.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
'QPL_END',
'QPL_CANCEL',
'QPL_NOTE',
'QPL_POINT',

'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,5 +1,5 @@
// Copyright 2004-present Facebook. All Rights Reserved.
// @generated SignedSource<<97f4ec911f41ef2128b984e76f95622c>>
// @generated SignedSource<<301f9660d6f7f5dd33cf976b6b7a29b8>>

#include <stdexcept>
#include <profilo/entries/EntryType.h>
Expand Down Expand Up @@ -69,6 +69,7 @@ const char* to_string(EntryType type) {
case QPL_END: return "QPL_END";
case QPL_CANCEL: return "QPL_CANCEL";
case QPL_NOTE: return "QPL_NOTE";
case QPL_POINT: return "QPL_POINT";
case TRACE_ANNOTATION: return "TRACE_ANNOTATION";
case WAIT_START: return "WAIT_START";
case WAIT_END: return "WAIT_END";
Expand Down
57 changes: 29 additions & 28 deletions cpp/generated/EntryType.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2004-present Facebook. All Rights Reserved.
// @generated SignedSource<<52ad6bef5b55b370685ca87d22a7b899>>
// @generated SignedSource<<e540fd69405eb2c92f9a2f08938d184a>>

#pragma once

Expand Down Expand Up @@ -66,33 +66,34 @@ enum EntryType {
QPL_END = 56,
QPL_CANCEL = 57,
QPL_NOTE = 58,
TRACE_ANNOTATION = 59,
WAIT_START = 60,
WAIT_END = 61,
WAIT_SIGNAL = 62,
STRING_KEY = 63,
STRING_VALUE = 64,
QPL_TAG = 65,
QPL_ANNOTATION = 66,
TRACE_THREAD_NAME = 67,
TRACE_PRE_END = 68,
TRACE_THREAD_PRI = 69,
MAJOR_FAULT = 70,
YARN_LOST_RECORDS = 71,
CLASS_LOAD = 72,
NATIVE_STACK_FRAME = 73,
NATIVE_LIB_MAPPING = 74,
JAVASCRIPT_STACK_FRAME = 75,
MESSAGE_START = 76,
MESSAGE_END = 77,
CLASS_VALUE = 78,
HTTP2_REQUEST_INITIATED = 79,
HTTP2_FRAME_HEADER = 80,
HTTP2_WINDOW_UPDATE = 81,
HTTP2_PRIORITY = 82,
PROCESS_LIST = 83,
IO_START = 84,
IO_END = 85,
QPL_POINT = 59,
TRACE_ANNOTATION = 60,
WAIT_START = 61,
WAIT_END = 62,
WAIT_SIGNAL = 63,
STRING_KEY = 64,
STRING_VALUE = 65,
QPL_TAG = 66,
QPL_ANNOTATION = 67,
TRACE_THREAD_NAME = 68,
TRACE_PRE_END = 69,
TRACE_THREAD_PRI = 70,
MAJOR_FAULT = 71,
YARN_LOST_RECORDS = 72,
CLASS_LOAD = 73,
NATIVE_STACK_FRAME = 74,
NATIVE_LIB_MAPPING = 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,
PROCESS_LIST = 84,
IO_START = 85,
IO_END = 86,
};


Expand Down
58 changes: 30 additions & 28 deletions cpp/generated/EntryType.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Copyright 2004-present Facebook. All Rights Reserved.
// @generated SignedSource<<dd55ac6d5b705dbc1f472d54bcd0b831>>
// @generated SignedSource<<6d9c73cd423aa26852819839f20c29e3>>

package com.facebook.profilo.entries;

Expand Down Expand Up @@ -64,33 +64,34 @@ public class EntryType {
public static final int QPL_END = 56;
public static final int QPL_CANCEL = 57;
public static final int QPL_NOTE = 58;
public static final int TRACE_ANNOTATION = 59;
public static final int WAIT_START = 60;
public static final int WAIT_END = 61;
public static final int WAIT_SIGNAL = 62;
public static final int STRING_KEY = 63;
public static final int STRING_VALUE = 64;
public static final int QPL_TAG = 65;
public static final int QPL_ANNOTATION = 66;
public static final int TRACE_THREAD_NAME = 67;
public static final int TRACE_PRE_END = 68;
public static final int TRACE_THREAD_PRI = 69;
public static final int MAJOR_FAULT = 70;
public static final int YARN_LOST_RECORDS = 71;
public static final int CLASS_LOAD = 72;
public static final int NATIVE_STACK_FRAME = 73;
public static final int NATIVE_LIB_MAPPING = 74;
public static final int JAVASCRIPT_STACK_FRAME = 75;
public static final int MESSAGE_START = 76;
public static final int MESSAGE_END = 77;
public static final int CLASS_VALUE = 78;
public static final int HTTP2_REQUEST_INITIATED = 79;
public static final int HTTP2_FRAME_HEADER = 80;
public static final int HTTP2_WINDOW_UPDATE = 81;
public static final int HTTP2_PRIORITY = 82;
public static final int PROCESS_LIST = 83;
public static final int IO_START = 84;
public static final int IO_END = 85;
public static final int QPL_POINT = 59;
public static final int TRACE_ANNOTATION = 60;
public static final int WAIT_START = 61;
public static final int WAIT_END = 62;
public static final int WAIT_SIGNAL = 63;
public static final int STRING_KEY = 64;
public static final int STRING_VALUE = 65;
public static final int QPL_TAG = 66;
public static final int QPL_ANNOTATION = 67;
public static final int TRACE_THREAD_NAME = 68;
public static final int TRACE_PRE_END = 69;
public static final int TRACE_THREAD_PRI = 70;
public static final int MAJOR_FAULT = 71;
public static final int YARN_LOST_RECORDS = 72;
public static final int CLASS_LOAD = 73;
public static final int NATIVE_STACK_FRAME = 74;
public static final int NATIVE_LIB_MAPPING = 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 PROCESS_LIST = 84;
public static final int IO_START = 85;
public static final int IO_END = 86;

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

0 comments on commit 5d8eb8e

Please sign in to comment.