• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JuliaLang / julia / #37601

20 Aug 2023 01:36AM UTC coverage: 86.512% (+0.09%) from 86.427%
#37601

push

local

web-flow
Use rr-safe `nopl; rdtsc` sequence (#50975)

When running under `rr`, it needs to patch out `rdtsc` to record the
values returned. If this is not possible, `rr` falls back to an
expensive signal-based emulation. As of rr master, a specific `nopl;
rdtsc` sequence may be used to guarantee that `rdtsc` patching is always
possible. Use this sequence for uses of rdtsc in our runtime.

73270 of 84693 relevant lines covered (86.51%)

9871265.56 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

66.67
/stdlib/Markdown/src/IPython/IPython.jl
1
# This file is a part of Julia. License is MIT: https://julialang.org/license
2

3
mutable struct LaTeX
4
    formula::String
405✔
5
end
6

7
@trigger '$' ->
×
8
function tex(stream::IO, md::MD)
×
9
    result = parse_inline_wrapper(stream, "\$", rep = true)
22,474✔
10
    return result === nothing ? nothing : LaTeX(result)
22,475✔
11
end
12

13
function blocktex(stream::IO, md::MD)
22,474✔
14
    withstream(stream) do
22,474✔
15
        ex = tex(stream, md)
22,475✔
16
        if ex ≡ nothing
22,474✔
17
            return false
22,473✔
18
        else
19
            push!(md, ex)
1✔
20
            return true
1✔
21
        end
22
    end
23
end
24

25
show(io::IO, tex::LaTeX) =
×
26
    print(io, '$', tex.formula, '$')
27

28
latex(io::IO, tex::LaTeX) =
×
29
    println(io, "\$\$", tex.formula, "\$\$")
30

31
latexinline(io::IO, tex::LaTeX) =
×
32
    print(io, '$', tex.formula, '$')
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc