wu-sheng commented on a change in pull request #63:
URL: 
https://github.com/apache/skywalking-data-collect-protocol/pull/63#discussion_r811226788



##########
File path: rover/Profile.proto
##########
@@ -0,0 +1,87 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+syntax = "proto3";
+
+package skywalking.v3;
+
+option java_multiple_files = true;
+option java_package = "org.apache.skywalking.apm.network.rover.profile.v3";
+option go_package = 
"skywalking.apache.org/repo/goapi/collect/rover/profile/v3";
+
+import "common/Common.proto";
+
+// Define the Rover Process profile task and upload profile data.
+service ProfileService {
+    // Query profile (start or stop) tasks
+    rpc queryTasks (ProfileTaskQuery) returns (Commands) {
+    }
+
+    // collect profile data
+    rpc collectProfileData (stream ProfileData) returns (Commands) {
+    }
+}
+
+message ProfileTaskQuery {
+    // rover instance id
+    string roverInstanceId = 1;
+
+    // last command timestamp
+    int64 lastCommandTime = 2;
+}
+
+message ProfileData {
+    // which process and task is profiled
+    ProcessProfileMetadata processProfileMetadata = 1;
+    // stack data in one task(thread)
+    repeated ProfileStackMetadata stacks = 2;
+    // stack counts
+    ProfileStackCounts stackCounts = 3;
+}
+
+message ProcessProfileMetadata {
+    // profile task id
+    string taskId = 1;
+    // profiled process id
+    string processId = 2;
+    // the start time of this profiled process
+    int64 profileStartTime = 3;
+    // report time
+    int64 currentTime = 4;
+}
+
+message ProfileStackMetadata {
+    // stack type
+    ProfileStackType stackType = 1;
+    // stack id from kernel provide
+    int32 stackId = 2;
+    // stack symbols
+    repeated string stackSymbols = 3;

Review comment:
       Could you give more specific examples about what is stack ID and what 
are stack Symbols?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to