• Places
    • Home
    • Graphs
    • Prefixes
  • Admin
    • Users
    • Settings
    • Plugins
    • Statistics
  • CPACK
    • Home
    • List packs
    • Submit pack
  • Repository
    • Load local file
    • Load from HTTP
    • Load from library
    • Remove triples
    • Clear repository
  • Query
    • YASGUI SPARQL Editor
    • Simple Form
    • SWISH Prolog shell
  • Help
    • Documentation
    • Tutorial
    • Roadmap
    • HTTP Services
  • Login

10.5 Thread support library(threadutil)
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • Multithreaded applications
        • Thread support library(threadutil)
          • threads/0
          • join_threads/0
          • interactor/0
          • Debugging threads
          • Profiling threads
            • tprofile/1
    • Packages
h3 id="sec:tprofile">10.5.2 Profiling threads

In the current implementation, at most one thread can be profiled at any moment. Any thread can call profile/1 to profile the execution of some part of its code. The predicate tprofile/1 allows for profiling the execution of another thread until the user stops collecting profile data.

tprofile(+ThreadId)
Start collecting profile data in ThreadId and ask the user to hit <return> to stop the profiler. See section 4.42 for details on the execution profiler.

ClioPatria (version V3.1.1-42-gd6a756b-DIRTY)