2 ; RUN: rm -rf %t; split-file %s %t
4 ; Test ThinLTO with time trace
5 ; RUN: opt -module-summary %t/f.s -o %t/f.o
6 ; RUN: opt -module-summary %t/g.s -o %t/g.o
7 ; RUN: %lld --time-trace --time-trace-granularity=0 -dylib %t/f.o %t/g.o -o %t/libTest.dylib
8 ; RUN: cat %t/libTest.dylib.time-trace \
9 ; RUN: | %python -c 'import json, sys; json.dump(json.loads(sys.stdin.read()), sys.stdout, sort_keys=True, indent=2)' \
12 ; CHECK: "traceEvents": [
13 ; Check fields for an event are present
15 ; CHECK-NEXT: "detail":
23 ; Check that an optimization event is present
24 ; CHECK: "name": "OptModule"
27 target triple = "x86_64-apple-darwin"
28 target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
39 target triple = "x86_64-apple-darwin"
40 target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"