1-- 2-- Copyright 2019 The Android Open Source Project 3-- 4-- Licensed under the Apache License, Version 2.0 (the "License"); 5-- you may not use this file except in compliance with the License. 6-- You may obtain a copy of the License at 7-- 8-- https://www.apache.org/licenses/LICENSE-2.0 9-- 10-- Unless required by applicable law or agreed to in writing, software 11-- distributed under the License is distributed on an "AS IS" BASIS, 12-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13-- See the License for the specific language governing permissions and 14-- limitations under the License. 15-- 16SELECT 17 ts, 18 name, 19 string_value, 20 int_value 21FROM ( 22 SELECT 23 slice.arg_set_id, 24 slice.track_id, 25 slice.ts, 26 slice.name, 27 prod.string_value 28 FROM slice JOIN ( 29 SELECT 30 arg_set_id, 31 string_value 32 FROM args 33 WHERE key = "producer_name" 34 ) prod ON slice.arg_set_id = prod.arg_set_id 35) slice_prod JOIN ( 36 SELECT 37 arg_set_id, 38 int_value 39 FROM args 40 WHERE key = "trusted_producer_uid" 41) prod_uid ON prod_uid.arg_set_id = slice_prod.arg_set_id 42WHERE slice_prod.track_id in ( 43 SELECT id FROM track WHERE name = "Trace Triggers" 44) 45ORDER BY ts ASC; 46