Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMake android logging work for multiple println calls #21950
Conversation
highfive
commented
Oct 15, 2018
|
@bors-servo r+ PogChamp |
|
|
Make android logging work for multiple println calls
The existing implementation had incorrect calculations for calculating when there was unlogged data sitting in the buffer and when the buffer was full. With these changes I am able to see the expected output for the following testcase:
```html
<script>
console.log("hi");
console.log("hi there");
console.log("hi there again");
let s = "hi there again x2 ";
for (var i = 0; i < 10; i++) {
s += s;
}
console.log(s);
</script>
```
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21875
- [x] These changes do not require tests because no automated tests for behaviour of logcat on android
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21950)
<!-- Reviewable:end -->
|
|
|
@bors-servo r=nox |
|
|
Make android logging work for multiple println calls
The existing implementation had incorrect calculations for calculating when there was unlogged data sitting in the buffer and when the buffer was full. With these changes I am able to see the expected output for the following testcase:
```html
<script>
console.log("hi");
console.log("hi there");
console.log("hi there again");
let s = "hi there again x2 ";
for (var i = 0; i < 10; i++) {
s += s;
}
console.log(s);
</script>
```
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21875
- [x] These changes do not require tests because no automated tests for behaviour of logcat on android
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21950)
<!-- Reviewable:end -->
|
|
|
@bors-servo r+ |
|
|
Make android logging work for multiple println calls
The existing implementation had incorrect calculations for calculating when there was unlogged data sitting in the buffer and when the buffer was full. With these changes I am able to see the expected output for the following testcase:
```html
<script>
console.log("hi");
console.log("hi there");
console.log("hi there again");
let s = "hi there again x2 ";
for (var i = 0; i < 10; i++) {
s += s;
}
console.log(s);
</script>
```
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21875
- [x] These changes do not require tests because no automated tests for behaviour of logcat on android
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21950)
<!-- Reviewable:end -->
|
|
|
@bors-servo retry
|
Make android logging work for multiple println calls
The existing implementation had incorrect calculations for calculating when there was unlogged data sitting in the buffer and when the buffer was full. With these changes I am able to see the expected output for the following testcase:
```html
<script>
console.log("hi");
console.log("hi there");
console.log("hi there again");
let s = "hi there again x2 ";
for (var i = 0; i < 10; i++) {
s += s;
}
console.log(s);
</script>
```
---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #21875
- [x] These changes do not require tests because no automated tests for behaviour of logcat on android
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21950)
<!-- Reviewable:end -->
|
|
|
Output is still not showing. |
|
This did not make the nightly build, if that's what you're testing. |
|
Nah I just forgot to reinstall the app on my device. |
jdm commentedOct 15, 2018
•
edited by SimonSapin
The existing implementation had incorrect calculations for calculating when there was unlogged data sitting in the buffer and when the buffer was full. With these changes I am able to see the expected output for the following testcase:
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is