Files
codeql/python/tools/recorded-call-graph-metrics/example-traces/builtins.xml
Rasmus Wriedt Larsen a1c1ab080b Python: CG trace: Add examples of multiple calls on one line
There are currently 16 InvalidRecordedCall
2020-07-20 14:03:37 +02:00

106 lines
3.2 KiB
XML

<root>
<info>
<cg_trace_version>0.0.2</cg_trace_version>
<args>--xml example-traces/builtins.xml example/builtins.py</args>
<exit_status>completed</exit_status>
<elapsed>0.00 seconds</elapsed>
<utctimestamp>2020-07-20T12:02:56</utctimestamp>
</info>
<recorded_calls>
<recorded_call>
<Call>
<filename>/home/rasmus/code/ql/python/tools/recorded-call-graph-metrics/example/builtins.py</filename>
<linenum>1</linenum>
<inst_index>4</inst_index>
<bytecode_expr>
<BytecodeCall>
<function>
<BytecodeVariableName>
<name>print</name>
</BytecodeVariableName>
</function>
</BytecodeCall>
</bytecode_expr>
</Call>
<ExternalCallee>
<module>builtins</module>
<qualname>print</qualname>
<is_builtin>True</is_builtin>
</ExternalCallee>
</recorded_call>
<recorded_call>
<Call>
<filename>/home/rasmus/code/ql/python/tools/recorded-call-graph-metrics/example/builtins.py</filename>
<linenum>2</linenum>
<inst_index>12</inst_index>
<bytecode_expr>
<BytecodeCall>
<function>
<BytecodeVariableName>
<name>len</name>
</BytecodeVariableName>
</function>
</BytecodeCall>
</bytecode_expr>
</Call>
<ExternalCallee>
<module>builtins</module>
<qualname>len</qualname>
<is_builtin>True</is_builtin>
</ExternalCallee>
</recorded_call>
<recorded_call>
<Call>
<filename>/home/rasmus/code/ql/python/tools/recorded-call-graph-metrics/example/builtins.py</filename>
<linenum>4</linenum>
<inst_index>28</inst_index>
<bytecode_expr>
<BytecodeCall>
<function>
<BytecodeAttribute>
<attr_name>append</attr_name>
<object>
<BytecodeVariableName>
<name>l</name>
</BytecodeVariableName>
</object>
</BytecodeAttribute>
</function>
</BytecodeCall>
</bytecode_expr>
</Call>
<ExternalCallee>
<module>None</module>
<qualname>list.append</qualname>
<is_builtin>True</is_builtin>
</ExternalCallee>
</recorded_call>
<recorded_call>
<Call>
<filename>/home/rasmus/code/ql/python/tools/recorded-call-graph-metrics/example/builtins.py</filename>
<linenum>7</linenum>
<inst_index>44</inst_index>
<bytecode_expr>
<BytecodeCall>
<function>
<BytecodeAttribute>
<attr_name>getdefaultencoding</attr_name>
<object>
<BytecodeVariableName>
<name>sys</name>
</BytecodeVariableName>
</object>
</BytecodeAttribute>
</function>
</BytecodeCall>
</bytecode_expr>
</Call>
<ExternalCallee>
<module>sys</module>
<qualname>getdefaultencoding</qualname>
<is_builtin>True</is_builtin>
</ExternalCallee>
</recorded_call>
</recorded_calls>
</root>