Skip to content

profile format=:flat has wrong overhead #49732

Closed

Description

for example, I made this profile:

Profile.print(C=true,format=:flat,sortedby=:overhead)

    17         1 /Users/jameson/julia1/src/subtype.c                                                                                                    343 obviously_egal
     8         1 /Users/jameson/julia1/src/subtype.c                                                                                                    770 var_gt
     4         1 /Users/jameson/julia1/src/subtype.c                                                                                                    646 subtype_ccheck
     9         1 /Users/jameson/julia1/src/subtype.c                                                                                                   1451 subtype
     8         1 /Users/jameson/julia1/src/jltypes.c                                                                                                    533 flatten_type_union
   206         2 /usr/lib/system/libsystem_malloc.dylib                                                                                                   ? _nanov2_free
     5         2 /Users/jameson/julia1/src/jltypes.c                                                                                                    826 simple_intersect
   213         3 /usr/lib/system/libsystem_malloc.dylib                                                                                                   ? nanov2_malloc
    19         3 /usr/lib/system/libsystem_malloc.dylib                                                                                                   ? free
    13         3 /usr/lib/system/libsystem_malloc.dylib                                                                                                   ? _malloc_zone_malloc
    14         3 /Users/jameson/julia1/src/subtype.c                                                                                                    981 subtype_unionall
     3         3 /usr/lib/system/libsystem_malloc.dylib                                                                                                   ? malloc
     8         5 /Users/jameson/julia1/src/jltypes.c                                                                                                   1483 jl_unwrap_unionall
    11         5 /usr/lib/system/libsystem_kernel.dylib                                                                                                   ? __error
   108         6 /Users/jameson/julia1/src/jltypes.c                                                                                                    154 has_free_typevars
    23         6 /Users/jameson/julia1/src/subtype.c                                                                                                   1546 local_forall_exists_subtype
    21        14 /usr/lib/system/libsystem_pthread.dylib                                                                                                  ? pthread_getspecific
    26        26 /usr/lib/system/libsystem_platform.dylib                                                                                                 ? [unknown function]
    32        32 /Users/jameson/julia1/usr/lib/libjulia-internal.1.10.dylib                                                                               ? [unknown function]
   118       118 /usr/lib/system/libsystem_platform.dylib                                                                                                 ? _platform_memmove$VARIANT$Haswell
   189       189 /usr/lib/system/libsystem_platform.dylib                                                                                                 ? _platform_bzero$VARIANT$Haswell
  6271      6271 /Users/jameson/julia1/src/jlapi.c                                                                                                      734 jl_repl_entrypoint

Gabriel noted that is has attributed overhead to the root node, instead of the leaf node, so it might be processing this counter in the wrong direction now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions