Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enchant the debugging capabilities #136

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JBenda
Copy link
Contributor

@JBenda JBenda commented Dec 20, 2021

  • add documentation for existing summary envs (J_TRACE and J_TRACE_FUNCTION)
  • add KEEP_STACK as option for J_TRACE_FUNCTION to trace stacks below traced function

e.g.:
J_TRACE=summary J_TRACE_FUNCTION=j_message_send ./hello_world

# stack duration[s] count
j_message_send 0.000237 8  

J_TRACE=summary J_TRACE_FUNCTION=j_message_send,KEEP_STACK ./hello_world

# stack duration[s] count
j_batch_execute/j_batch_execute_internal/j_batch_execute_same/j_kv_put_exec/j_message_send 0.000026 1
j_batch_execute/j_batch_execute_internal/j_batch_execute_same/j_db_insert_exec/j_backend_db_func_exec/j_message_send 0.000029 1
j_batch_execute/j_batch_execute_internal/j_batch_execute_same/j_kv_put_exec/j_connection_pool_pop/j_connection_pool_pop_internal/j_message_send 0.000022 1
j_batch_execute/j_batch_execute_internal/j_batch_execute_same/j_object_write_exec/j_message_send 0.000031 1
j_batch_execute/j_batch_execute_internal/j_batch_execute_same/j_db_schema_create_exec/j_backend_db_func_exec/j_message_send 0.000027 1
j_batch_execute/j_batch_execute_internal/j_batch_execute_same/j_db_schema_create_exec/j_backend_db_func_exec/j_connection_pool_pop/j_connection_pool_pop_internal/j_message_send 0.000036 1
j_batch_execute/j_batch_execute_internal/j_batch_execute_same/j_object_create_exec/j_connection_pool_pop/j_connection_pool_pop_internal/j_message_send 0.000039 1
j_batch_execute/j_batch_execute_internal/j_batch_execute_same/j_object_create_exec/j_message_send 0.000030 1   

J_TRACE=summary J_TRACE_FUNCTION=j_message_send,j_object* ./hello_world

# stack duration[s] count
j_object_create_exec/j_message_send 0.000044 2
j_message_send 0.000111 6
j_object_create_exec 0.013171 1    

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant