Tag:breakpoint
-
Go program performance analysis tools and methods
Author: Ning Liang 1、 Common analysis commands and tools pprof go tool [xxx] go test delve go race gdb 2、 Parameter passing during program compilation 1、gcflags //You can use go tool compile — help to view the available parameters and their meanings go build -gcflags=”-m” For example, – N disables compilation optimization, – L prohibits […]
-
Vscode breakpoint debugging nodejs practical and convenient
preface In normal front-end development, the front-end code can be easily debugged on the browser. How to realize breakpoint debugging if you want to debug the node back-end interface? to configure Open the node project with vscode and click the debug button on the left Click Run and debug Select the language as nodejs Click […]
-
Microservice architecture * 2.3 spring cloud startup and loading configuration file source code analysis (taking Nacos as an example)
catalogue preface 1. When does spring cloud load the configuration file 2. Prepare environment configuration environment 2.1 configure environment springapplication prepareEnvironment() 2.2 use the event master to create and publish the event simpleapplicationeventmulticast multicastEvent() 2.3 bootstrap applicationlistener handles events and automatically imports some configuration classes 3. Refresh application context 3.1 refresh context springapplication prepareContext() 3.2 […]
-
GDB debugging mydumper troubleshooting warning information root cause
Problem background: When using mydumepr version 0.9.5 to back up the cloud database, there are occasional alarm information, almost all of which are from the sys library. In fact, this library is not backed up. I don’t know why I detect the sys library and there are alarm information. ** (mydumper:19312): WARNING **: Broken table […]
-
Microservice architecture * 2.4 source code analysis of Nacos acquisition configuration and event subscription mechanism
catalogue preface 1. The client obtains the configuration in the Nacos server 1.1 locate the Nacos configuration source nacospropertysourcelocator locate() 2. Event subscription mechanism configured by Nacos 2.1 listen to the applicationreadyevent event and register the listener nacoscontextrefresh onApplicationEvent() 2.2 register the Nacos listener and listen for configuration changes registerNacosListener() 2.3 monitor the configuration change […]
-
Microservice architecture * 2.5 source code analysis of Nacos long polling timing mechanism
catalogue preface 1. Long polling timing mechanism of client 1.1 instantiate the nacosconfigservice object using reflection mechanism 1.2 start long polling timing task in the construction method of nacosconfigservice 1.2.1 initialize httpagent 1.2.2 initializing clientworker 1.3 check the configuration change and read the changed configuration longpollingrunnable run() 1.3.1 check the configuration change clientworker checkUpdateDataIds() 1.3.2 […]
-
Android & kotlin: MVVM + retro fit + flow (coroutine collaboration) + Moshi + hilt framework project
1. Introduction This project is an Android kotlin framework project, which aims to provide a rapid development framework for Android native developers. The main functions are network data request and file breakpoint download. Project link: https://gitee.com/hepta/LadyPicture 2. Network request retrofit + flow 2.1 operation manual, super simple Send the request in ViewModel; Girls is a […]
-
Observe the function call stack, scope chain and closure in the chrome developer tool
In front-end development, there is a very important skill calledbreakpoint debugging 。 In the developer tools of chrome, through breakpoint debugging, we can easily observe the execution process of JavaScript step by step, and intuitively perceive the changes of key information such as function call stack, scope chain, variable object, closure, this and so on. […]
-
Android multitasking file breakpoint download and upload (high imitation vivo application market) can be used directly
The author is a face bully. He has interviewed 200 + times and worked as an examiner: he has met 300 + times, has been to the top 500 and has been to a start-up company. If you pay attention to me, you can reach the master level. I finally dare to say that the […]
-
Springboot file upload report Java nio. file. NoSuchFileException: /tmp/undertow
There is a problem with the test environment today. The file upload report is wrong. java. nio. file. NoSuchFileException: /tmp/undertowAfter checking, the temporary file directory has been deleted. Take notes. The first is the temporary file directorywindows C:\Users{username}\AppData\Local\Temp\Linux /tmp When springboot uploads a file, it will store the file in these two paths. Take window […]
-
Exception handling of structured streaming [concurrent update to the log. Multiple streaming jobs detected]
catalogue Abnormal information I Causes of abnormal appearance 1. Exception source code: 2. Make a breakpoint II Solution 1. The start offset of each partition can be specified by code 2. Do not delete but change the batch file under checkpoint offset III Reasons behind exceptions First, what caused it? IV. verification Why is spark […]