File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 9999 end
100100end
101101
102+
103+ const HAS_META = isdefined (Profile, :has_meta )
102104@testset " with_c" begin
103105 Profile. clear ()
104106
@@ -110,28 +112,28 @@ end
110112 end
111113 @testset for i in 1 : 4
112114 if i == 1
113- if ! Profile . has_meta
115+ if ! HAS_META
114116 continue
115117 end
116118 data = Profile. fetch (include_meta = true )
117119 args = (data,)
118120 elseif i == 2
119- if ! Profile . has_meta
121+ if ! HAS_META
120122 continue
121123 end
122124 data,lidict = Profile. retrieve (include_meta = true )
123125 args = (data, lidict)
124126 elseif i == 3
125127 # Ensure we are backwards compatible with older, non-meta profiles
126- if Profile . has_meta
128+ if HAS_META
127129 data = Profile. fetch (include_meta = false )
128130 else
129131 data = Profile. fetch ()
130132 end
131133 args = (data,)
132134 else
133135 # Ensure we are backwards compatible with older, non-meta profiles
134- if Profile . has_meta
136+ if HAS_META
135137 data,lidict = Profile. retrieve (include_meta = false )
136138 else
137139 data,lidict = Profile. retrieve ()
You can’t perform that action at this time.
0 commit comments