This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/enable_monitor_api'
- Loading branch information
Showing
4 changed files
with
100 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
vlayout/src/main/java/com/alibaba/android/vlayout/extend/PerformanceMonitor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package com.alibaba.android.vlayout.extend; | ||
|
||
import android.view.View; | ||
|
||
/** | ||
* Add callback during measure and layout, help you to monitor your view's performance.<br /> | ||
* Designed as Class instead of Interface is able to extend api in future. <br /> | ||
* | ||
* Created by longerian on 2018/5/16. | ||
* | ||
* @author longerian | ||
* @date 2018/05/16 | ||
*/ | ||
public class PerformanceMonitor { | ||
|
||
/** | ||
* Record the start time | ||
* @param phase | ||
* @param viewType | ||
*/ | ||
public void recordStart(String phase, String viewType) { | ||
|
||
} | ||
|
||
/** | ||
* Record the end time | ||
* @param phase | ||
* @param viewType | ||
*/ | ||
public void recordEnd(String phase, String viewType) { | ||
|
||
} | ||
|
||
/** | ||
* Record the start time | ||
* @param phase | ||
* @param view | ||
*/ | ||
public void recordStart(String phase, View view) { | ||
|
||
} | ||
|
||
/** | ||
* Record the end time | ||
* @param phase | ||
* @param view | ||
*/ | ||
public void recordEnd(String phase, View view) { | ||
|
||
} | ||
|
||
} |