# Print when compiling?

**URL:** <https://numba.discourse.group/t/print-when-compiling/375>\
**Category:** Community Support\
**Created:** [December 1, 2020, 5:27pm UTC](https://numba.discourse.group/t/print-when-compiling/375 "2020-12-01T17:27:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![calbaker](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@calbaker](https://numba.discourse.group/u/calbaker)\
**Post date:** [December 1, 2020, 5:27pm UTC](https://numba.discourse.group/t/print-when-compiling/375/1 "2020-12-01T17:27:59Z")

</div>

Is there a way to make an njit function or jitclass print when it’s compiling? I’m troubleshooting a parallelization issue of a jitclass, and it’d be helpful to see a print statement like “jitclass is compiling” or something whenever that happens to make sure it’s not being repeated for each new thread.

---

<div class="post-metadata">

**Author:** ![stuartarchibald](https://yyz2.discourse-cdn.com/free1/user_avatar/numba.discourse.group/stuartarchibald/32/10_2.png) [@stuartarchibald](https://numba.discourse.group/u/stuartarchibald)\
**Post date:** [December 2, 2020, 10:57am UTC](https://numba.discourse.group/t/print-when-compiling/375/2 "2020-12-02T10:57:25Z")

</div>

Hi @calbaker,

You can switch on the tracer which will show you the compilation pipeline entries for the function names. For example:

```python
from numba import njit, types
from numba.experimental import jitclass

@jitclass({'a':types.int64})
class Foo(object):
    def __init__ (self, a):
        self.a = a

@njit
def make_foo():
    return Foo(1)

@njit
def main():
    return make_foo()

main()

```

then run with:

```auto
$ NUMBA_TRACE=1 python di34.py 2>&1 |grep Pipeline
== Pipeline: nopython for __main__.main
== Pipeline: nopython for __main__.make_foo
== Pipeline: nopython for __main__.Foo. __init__
== Pipeline: nopython for <dynamic>.accessor

```

For standard `@jit` decorated function there’s some more suggestions in this thread [Create log message on Numba compilation / Find out if given arguments lead to compilation](https://numba.discourse.group/t/create-log-message-on-numba-compilation-find-out-if-given-arguments-lead-to-compilation/114/3).

Hope this helps?
