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:
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:
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.
Step2: Now I found the configuration table which stores the trace configuration information. Perform where-used-list on the table again:
The second report, /IWFND/SUTIL_TRACE_CONFIG, is what I am looking for, the one to launch OData trace UI.
To verify, simply execute it. And that’s it. After I made the following setting and click save button:
There is corresponding entry persisted in the table I found in this step.
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. ….
Double click on ENABLE_ODATA_TRACE, and we get to know the flag will become true if io_context->debug is true.
So now research /IWCOR/IF_DS_CNTXT instead:
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.
so perform the where-used-list on constructor method:
Here we are very near to the target:
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.
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2718380/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 一個CRM OData的效能問題分析
- SAP Cloud for Customer和SAP Fiori系統裡的OData測試工具Cloud
- 幾種 SAP ABAP OData 服務的效能評估和測試工具介紹試讀版
- SAP 系統效能分析 Tcode
- SAP OData程式設計指南程式設計
- 效能分析工具 - pprof
- android效能分析工具systraceAndroid
- CPU效能分析工具原理
- 效能分析工具簡介
- 一個典型的加了 SAP 註解的 OData 服務明細分析
- SAP ABAP OData 服務診斷工具 /IWFND/ERROR_LOG 的使用方法Error
- 使用 Postman 工具高效管理和測試 SAP ABAP OData 服務試讀版Postman
- Android 效能分析工具之TraceViewAndroidView
- 記憶體效能分析工具記憶體
- Java 效能分析 5 大工具Java
- Linux 效能分析工具彙總Linux
- perf效能分析工具使用分享
- 即時效能分析工具 PyroscopeROS
- 使用工具分析 SAP UI5 應用前端執行的效能問題UI前端
- SAP CRM OData multiple origin Composition的測試
- 使用 SAP Cloud SDK 連線 OData 服務Cloud
- Redis效能分析和運維工具Redis運維
- linux 效能分析工具dstat之一Linux
- SAP ABAP OData 服務的 $count 操作實現
- SAP S/4HANA OData Mock Service 介紹Mock
- PHP 效能追蹤及分析工具(XHPROF)PHP
- MySQL-09.效能分析工具的使用MySql
- 《MySQL 進階篇》十四:效能分析工具MySql
- golang 效能調優分析工具 pprof(下)Golang
- golang 效能調優分析工具 pprof (上)Golang
- MiniProfiler效能分析工具— .Net Core中用法
- valgrind和Kcachegrind效能分析工具詳解
- SAP UI5 應用的 OData 後設資料請求的傳送原理分析UI
- 如何啟用SAP C4C OData Event Notification
- 如何使用 ABAP 程式消費 SAP ABAP OData 服務
- SAP Gateway Service Builder 裡的 OData Model 定義方式GatewayUI
- SAP UI5 應用的 OData 後設資料請求響應的解析原理分析UI
- Linux效能分析工具與圖形化方法Linux