SAP OData性能分析工具-阿里云开发者社区

开发者社区> jerrywangsap> 正文

SAP OData性能分析工具

简介: SAP OData性能分析工具
+关注继续查看

As mentioned by title, this blog does not introduce the OData trace functionality itself, but shows the way how to find and figure out the usage of trace functionality by yourself, for example, find the corresponding transaction code or report name to launch the trace.

Actually this approach is not dedicated to gateway but generically applies to any other scenario:

– You have found switch or flag evaluation in some ABAP source code which dynamically controls the enablement of certain functionality. You need to know where and how you can access this switchable function.

For example, in gateway system, I found there are two flags which enable or disable the OData trace:


image.png


I need to find out how to perform the OData trace by the source code, without any debugging in the runtime.


Step1: perform where-used-list on mv_perf_level:


image.png


7 hits. Based on experience, I can judge that the line 100 is fill it with value fetched from DB table via open SQL.

Double click the line 100.


image.png


Step2: Now I found the configuration table which stores the trace configuration information. Perform where-used-list on the table again:


[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-7Poi9HmS-1596964696846)(https://upload-images.jianshu.io/upload_images/2085791-d82d1d9da89b6864.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]


The second report, /IWFND/SUTIL_TRACE_CONFIG, is what I am looking for, the one to launch OData trace UI.


[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-MLaMlaiq-1596964696850)(https://upload-images.jianshu.io/upload_images/2085791-fbf574f35cbb11ec.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]


To verify, simply execute it. And that’s it. After I made the following setting and click save button:


[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-oMIqTLf7-1596964696852)(https://upload-images.jianshu.io/upload_images/2085791-cbb7ae64f3ab62bc.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)]


There is corresponding entry persisted in the table I found in this step.


image.png


Step3: I am also curious about at what time the other flag, mv_odata_trace_active, could become true. Still the same approach.

Check the result. Based on experience, only the first method ENABLE_ODATA_TRACE performs the write access on the flag, all the left are read access such as IF mv_odata_trace_active = abap_true. ….


image.png


Double click on ENABLE_ODATA_TRACE, and we get to know the flag will become true if io_context->debug is true.


image.png


So now research /IWCOR/IF_DS_CNTXT instead:


image.png


Again the attribute DEBUG of interface only has the opportunity to be true in the constructor method of the implementation class, all other 41 hits are the read access on it and could be ignored.


image.png


so perform the where-used-list on constructor method:



image.png

Here we are very near to the target:


image.png


Just scroll up, and we get the result. The other flag could only become true when the two prerequisites are met:


(1) There is query parameter sap-ds-debug defined in the OData request url.

(2) The current user should have debug authorization, that is, should pass the check by function module SYSTEM_DEBUG_AUTHORITY_CHECK.


image.png

版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。

相关文章
阿里云服务器怎么设置密码?怎么停机?怎么重启服务器?
如果在创建实例时没有设置密码,或者密码丢失,您可以在控制台上重新设置实例的登录密码。本文仅描述如何在 ECS 管理控制台上修改实例登录密码。
10062 0
利用Chrome开发者工具分析C4C Opportunity搜索的前端性能
利用Chrome开发者工具分析C4C Opportunity搜索的前端性能
14 0
mysql show profile 性能分析工具
mysql show profile 执行时间 消耗时间 时间切片 -DENABLED_PROFILING=bool
731 0
阿里云服务器如何登录?阿里云服务器的三种登录方法
购买阿里云ECS云服务器后如何登录?场景不同,阿里云优惠总结大概有三种登录方式: 登录到ECS云服务器控制台 在ECS云服务器控制台用户可以更改密码、更换系.
13875 0
JVM 性能调优工具 jps
Jps 命令类似与 linux 的 ps 命令,但是它只列出系统中所有的 Java 应用程序。 通过 jps 命令可以方便地查看 Java 进程的启动类、传入参数和 Java 虚拟机参数等信息。如果在 linux 中想查看 java 的进程,一般我们都需要 ps -ef | grep java 来获取进程 ID。
1006 0
+关注
2628
文章
0
问答
来源圈子
更多
+ 订阅
文章排行榜
最热
最新
相关电子书
更多
《2021云上架构与运维峰会演讲合集》
立即下载
《零基础CSS入门教程》
立即下载
《零基础HTML入门教程》
立即下载