The decision to inline or not a function is made by compiler. And since it is made by compiler, so YES, it can be made at compile time only.
So, if you can see the assembly code by using -S option (with gcc -S produces assembly code), you can see whether your function has been inlined or not.