Git Product home page Git Product logo

Comments (3)

wolfpld avatar wolfpld commented on May 18, 2024 1

Am I missing something obvious?

No, some pieces of the C API may be missing. If something is needed it should be added.

from tracy.

wolfpld avatar wolfpld commented on May 18, 2024

This function is intended for use in bindings to other languages and expects certain contract to be followed. You can see example use in TracyLua.hpp:201, where rpmalloc is initialized by a call to TracyLfqPrepare.

from tracy.

nagisa avatar nagisa commented on May 18, 2024

This function is intended for use in bindings to other languages and expects certain contract to be followed.

Aha!

I am in a process of attempting a binding, although to an observability framework in an another compiled language. Since the language I’m looking to integrate has good C FFI, I hoped to do entirely with just the plain C APIs defined in the TracyC.h and without having to write any additional C++ code.

Alas, the C API itself does not appear to include anything resembling an initialization function that one would call for before calling the alloc_srcloc, however. Am I missing something obvious?

That said… I might actually be able to avoid use of alloc_srcloc in the first place, and the other functions appear to work fine without any prior initialization.

from tracy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.